Update directory paths from ~/homelab/ to ~/hops/
- Changed macOS deployment directory from ~/homelab/ to ~/hops/ - Updated all core scripts to use new path structure: • Main working directory: ~/hops/ • Config directory: ~/hops/config/ • Media directory: ~/hops/media/ • Environment file: ~/hops/.env - Updated documentation in CLAUDE.md and README.md - Changed log file naming from homelab-* to hops-* - Linux paths remain unchanged (/opt/appdata, /mnt/media) Benefits: - Better brand consistency with project name - Cleaner, more professional directory structure - Shorter, easier to remember paths - Immediately obvious what directory belongs to HOPS 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+9
-9
@@ -433,12 +433,12 @@ check_docker_access() {
|
||||
# Generate Docker Compose configuration
|
||||
generate_docker_compose() {
|
||||
local services=("$@")
|
||||
local compose_file="$HOME/homelab/docker-compose.yml"
|
||||
local compose_file="$HOME/hops/docker-compose.yml"
|
||||
|
||||
info "📝 Generating Docker Compose configuration..."
|
||||
|
||||
# Create homelab directory
|
||||
mkdir -p "$HOME/homelab"
|
||||
mkdir -p "$HOME/hops"
|
||||
|
||||
# Generate compose file header
|
||||
cat > "$compose_file" << EOF
|
||||
@@ -473,7 +473,7 @@ EOF
|
||||
|
||||
# Deploy services
|
||||
deploy_services() {
|
||||
local compose_file="$HOME/homelab/docker-compose.yml"
|
||||
local compose_file="$HOME/hops/docker-compose.yml"
|
||||
|
||||
if [[ ! -f "$compose_file" ]]; then
|
||||
error_exit "Docker Compose file not found: $compose_file"
|
||||
@@ -481,7 +481,7 @@ deploy_services() {
|
||||
|
||||
info "🚀 Deploying services..."
|
||||
|
||||
cd "$HOME/homelab"
|
||||
cd "$HOME/hops"
|
||||
|
||||
# Pull images
|
||||
if docker compose pull; then
|
||||
@@ -500,7 +500,7 @@ deploy_services() {
|
||||
|
||||
# Stop services
|
||||
stop_services() {
|
||||
local compose_file="$HOME/homelab/docker-compose.yml"
|
||||
local compose_file="$HOME/hops/docker-compose.yml"
|
||||
|
||||
if [[ ! -f "$compose_file" ]]; then
|
||||
error_exit "Docker Compose file not found: $compose_file"
|
||||
@@ -508,7 +508,7 @@ stop_services() {
|
||||
|
||||
info "🛑 Stopping services..."
|
||||
|
||||
cd "$HOME/homelab"
|
||||
cd "$HOME/hops"
|
||||
|
||||
if docker compose down; then
|
||||
success "Services stopped successfully"
|
||||
@@ -519,7 +519,7 @@ stop_services() {
|
||||
|
||||
# Show service status
|
||||
show_service_status() {
|
||||
local compose_file="$HOME/homelab/docker-compose.yml"
|
||||
local compose_file="$HOME/hops/docker-compose.yml"
|
||||
|
||||
if [[ ! -f "$compose_file" ]]; then
|
||||
error_exit "Docker Compose file not found: $compose_file"
|
||||
@@ -527,7 +527,7 @@ show_service_status() {
|
||||
|
||||
info "📊 Service status:"
|
||||
|
||||
cd "$HOME/homelab"
|
||||
cd "$HOME/hops"
|
||||
docker compose ps
|
||||
}
|
||||
|
||||
@@ -563,7 +563,7 @@ main() {
|
||||
if [[ $# -eq 0 ]]; then
|
||||
error_exit "Usage: $0 logs <service_name>"
|
||||
fi
|
||||
cd "$HOME/homelab"
|
||||
cd "$HOME/hops"
|
||||
docker compose logs -f "$1"
|
||||
;;
|
||||
|
||||
|
||||
+4
-4
@@ -379,7 +379,7 @@ run_system_checks() {
|
||||
# Get platform-specific default paths
|
||||
get_default_media_path() {
|
||||
if [[ "$OS_NAME_LOWER" == "macos" ]]; then
|
||||
echo "/Users/$USER/homelab/media"
|
||||
echo "/Users/$USER/hops/media"
|
||||
else
|
||||
echo "/mnt/media"
|
||||
fi
|
||||
@@ -387,7 +387,7 @@ get_default_media_path() {
|
||||
|
||||
get_default_config_path() {
|
||||
if [[ "$OS_NAME_LOWER" == "macos" ]]; then
|
||||
echo "/Users/$USER/homelab/config"
|
||||
echo "/Users/$USER/hops/config"
|
||||
else
|
||||
echo "/opt/appdata"
|
||||
fi
|
||||
@@ -395,9 +395,9 @@ get_default_config_path() {
|
||||
|
||||
get_default_homelab_path() {
|
||||
if [[ "$OS_NAME_LOWER" == "macos" ]]; then
|
||||
echo "/Users/$USER/homelab"
|
||||
echo "/Users/$USER/hops"
|
||||
else
|
||||
echo "/home/$USER/homelab"
|
||||
echo "/home/$USER/hops"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user