Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
fix: remove old references to app-settings.json
Kyle Mendell65f20d1415b4
diff --git a/scripts/docker/entrypoint.sh b/scripts/docker/entrypoint.shindex a0e15d92a..35bb721d7 100644--- a/scripts/docker/entrypoint.sh+++ b/scripts/docker/entrypoint.sh@@ -96,18 +96,5 @@ echo "Entrypoint: Ensuring data directory exists and setting ownership..."mkdir -p "$DATA_DIR"chown -R "${PUID}:${PGID}" "$DATA_DIR"-# If settings don't exist, copy the default-if [ ! -f "${DATA_DIR}/app-settings.json" ]; then- if [ -f "${DATA_DIR}/app-settings.json.default" ]; then # Check if default is in data dir- echo "Entrypoint: Copying default settings to ${DATA_DIR}/app-settings.json"- cp "${DATA_DIR}/app-settings.json.default" "${DATA_DIR}/app-settings.json"- chown "${PUID}:${PGID}" "${DATA_DIR}/app-settings.json"- elif [ -f "${APP_DIR}/app-settings.json.default" ]; then # Check if default is in app dir (e.g. copied during build)- echo "Entrypoint: Copying default settings from ${APP_DIR}/app-settings.json.default to ${DATA_DIR}/app-settings.json"- cp "${APP_DIR}/app-settings.json.default" "${DATA_DIR}/app-settings.json"- chown "${PUID}:${PGID}" "${DATA_DIR}/app-settings.json"- fi-fi-echo "Entrypoint: Setup complete. Executing command as user ${APP_USER} (UID: ${PUID}, GID: ${PGID})..."exec su-exec "$APP_USER" "$@"diff --git a/scripts/init-test-env.ts b/scripts/init-test-env.tsindex 52e75c88b..e81bf13ba 100644--- a/scripts/init-test-env.ts+++ b/scripts/init-test-env.ts@@ -75,11 +75,6 @@ async function setupTestEnvironment() {} catch (e) {/* ignore */}- try {- await fs.unlink(path.join(TEST_DATA_DIR, 'app-settings.json'));- } catch (e) {- /* ignore */- }console.log('Cleanup complete.');console.log('--- Test environment setup finished successfully! ---');diff --git a/src/lib/services/paths-service.ts b/src/lib/services/paths-service.tsindex 366ca3297..a341687f6 100644--- a/src/lib/services/paths-service.ts+++ b/src/lib/services/paths-service.ts@@ -3,7 +3,6 @@ import fs from 'node:fs/promises';export const BASE_PATH = 'data';-export const SETTINGS_FILE = path.join(BASE_PATH, 'app-settings.json');export const SETTINGS_DIR = path.join(BASE_PATH, 'settings');export const KEY_FILE = path.join(BASE_PATH, '.secret_key');export const SESSIONS_DIR = path.join(BASE_PATH, 'sessions');