fix: repair script paths after reorg

This commit is contained in:
uprightbass360
2025-11-09 03:41:44 -05:00
parent 9eabe316db
commit a53cf80d35
11 changed files with 40 additions and 36 deletions

View File

@@ -6,8 +6,8 @@
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
MODULE_HELPER="$SCRIPT_DIR/modules.py"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
MODULE_HELPER="$PROJECT_ROOT/scripts/python/modules.py"
DEFAULT_ENV_PATH="$PROJECT_ROOT/.env"
ENV_PATH="${MODULES_ENV_PATH:-$DEFAULT_ENV_PATH}"
TEMPLATE_FILE="$PROJECT_ROOT/.env.template"
@@ -65,11 +65,6 @@ resolve_manifest_path(){
echo "$candidate"
return
fi
candidate="$SCRIPT_DIR/../config/module-manifest.json"
if [ -f "$candidate" ]; then
echo "$candidate"
return
fi
candidate="/tmp/config/module-manifest.json"
if [ -f "$candidate" ]; then
echo "$candidate"
@@ -132,7 +127,7 @@ run_post_install_hooks(){
IFS=',' read -r -a hooks <<< "$hooks_csv"
local -a hook_search_paths=(
"$SCRIPT_DIR/hooks"
"$PROJECT_ROOT/scripts/hooks"
"/tmp/scripts/hooks"
"/scripts/hooks"
)
@@ -466,7 +461,7 @@ load_sql_helper(){
)
if [ "${MODULES_LOCAL_RUN:-0}" = "1" ]; then
helper_paths+=("$SCRIPT_DIR/manage-modules-sql.sh")
helper_paths+=("$PROJECT_ROOT/scripts/bash/manage-modules-sql.sh")
fi
local helper_path=""