From 681926dcdf5984989b7f175aadfce61b92ae3fd1 Mon Sep 17 00:00:00 2001 From: Meng Sen Date: Sun, 26 Jan 2025 12:01:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=9D=83=E9=99=90=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Meng Sen --- apps/komga/1.18.0/scripts/init.sh | 4 +++- apps/komga/1.18.0/scripts/upgrade.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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."