From 1e6bd8611c6f241a8d352b2a328cb46f54fb49ab Mon Sep 17 00:00:00 2001 From: houseassassin <3976100+houseassassin@users.noreply.github.com> Date: Wed, 22 Apr 2026 12:50:44 +0300 Subject: [PATCH] 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 --- install-advanced-v2.sh | 3 +++ install-advanced.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/install-advanced-v2.sh b/install-advanced-v2.sh index b5d7da3..d5e284e 100755 --- a/install-advanced-v2.sh +++ b/install-advanced-v2.sh @@ -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" diff --git a/install-advanced.sh b/install-advanced.sh index 6db80bb..0c3618f 100755 --- a/install-advanced.sh +++ b/install-advanced.sh @@ -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"