diff --git a/apps/komga/1.18.0/scripts/init.sh b/apps/komga/1.18.0/scripts/init.sh index 5c62cfe9..6f7c43ca 100644 --- a/apps/komga/1.18.0/scripts/init.sh +++ b/apps/komga/1.18.0/scripts/init.sh @@ -10,7 +10,9 @@ if [ -f .env ]; then echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env - chmod -R 777 "$KOMGA_ROOT_PATH" + # setup-2 copy config file + mkdir -p "$KOMGA_ROOT_PATH" + chown -R 1000:1000 "$KOMGA_ROOT_PATH" echo "Check Finish." diff --git a/apps/komga/1.18.0/scripts/upgrade.sh b/apps/komga/1.18.0/scripts/upgrade.sh index 5c62cfe9..6f7c43ca 100644 --- a/apps/komga/1.18.0/scripts/upgrade.sh +++ b/apps/komga/1.18.0/scripts/upgrade.sh @@ -10,7 +10,9 @@ if [ -f .env ]; then echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env - chmod -R 777 "$KOMGA_ROOT_PATH" + # setup-2 copy config file + mkdir -p "$KOMGA_ROOT_PATH" + chown -R 1000:1000 "$KOMGA_ROOT_PATH" echo "Check Finish."