fix: create project directory before logging
- Fix 'No such file or directory' error on first run - Create /opt/proxy-core directory before attempting to write logs - Affects both install-advanced.sh and install-advanced-v2.sh Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
This commit is contained in:
@@ -25,6 +25,9 @@ CYAN='\033[0;36m'
|
||||
GRAY='\033[0;90m'
|
||||
NC='\033[0m'
|
||||
|
||||
# Create project directory first
|
||||
mkdir -p "$PROJECT_DIR"
|
||||
|
||||
# Logging
|
||||
LOGFILE="${PROJECT_DIR}/installer.log"
|
||||
|
||||
|
||||
@@ -23,6 +23,9 @@ CYAN='\033[0;36m'
|
||||
GRAY='\033[0;90m'
|
||||
NC='\033[0m'
|
||||
|
||||
# Create project directory first
|
||||
mkdir -p "$PROJECT_DIR"
|
||||
|
||||
# Logging
|
||||
LOGFILE="${PROJECT_DIR}/installer.log"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user