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:
houseassassin
2026-04-22 12:50:44 +03:00
parent 373c18045b
commit 1e6bd8611c
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -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"
+3
View File
@@ -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"