From 9913dfc64130b30adf236401f9385f16c33354d7 Mon Sep 17 00:00:00 2001 From: Meng Sen Date: Sun, 26 Jan 2025 15:26:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=BA=94=E7=94=A8=E5=AE=89?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Meng Sen --- apps/transmission/4.0.6/docker-compose.yml | 2 +- apps/transmission/4.0.6/scripts/init.sh | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/transmission/4.0.6/docker-compose.yml b/apps/transmission/4.0.6/docker-compose.yml index df88b1d0..85cce949 100644 --- a/apps/transmission/4.0.6/docker-compose.yml +++ b/apps/transmission/4.0.6/docker-compose.yml @@ -18,7 +18,7 @@ services: - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} - ${ENV_FILE:-/etc/1panel/envs/default.env} volumes: - - ${TRANSMISSION_ROOT_PATH}/ui/themes:/ui/themes + - ${TRANSMISSION_ROOT_PATH}/themes:/themes - ${TRANSMISSION_ROOT_PATH}/config:/config - ${TRANSMISSION_ROOT_PATH}/downloads:/downloads - ${TRANSMISSION_ROOT_PATH}/watch:/watch diff --git a/apps/transmission/4.0.6/scripts/init.sh b/apps/transmission/4.0.6/scripts/init.sh index 7ac2ed41..0269b81e 100644 --- a/apps/transmission/4.0.6/scripts/init.sh +++ b/apps/transmission/4.0.6/scripts/init.sh @@ -11,14 +11,14 @@ if [ -f .env ]; then echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env # setup-2 install theme - if [ ! -d "$TRANSMISSION_ROOT_PATH/ui/themes" ]; then - mkdir -p "$TRANSMISSION_ROOT_PATH/ui/themes" + if [ ! -d "$TRANSMISSION_ROOT_PATH/themes" ]; then + mkdir -p "$TRANSMISSION_ROOT_PATH/themes" if command -v unzip >/dev/null 2>&1; then - unzip -o themes/flood-for-transmission.zip -d "$TRANSMISSION_ROOT_PATH/ui/themes" + unzip -o themes/flood-for-transmission.zip -d "$TRANSMISSION_ROOT_PATH/themes" UNZIP_SUCCESS=$? elif command -v tar >/dev/null 2>&1; then - tar -xf themes/flood-for-transmission.zip -C "$TRANSMISSION_ROOT_PATH/ui/themes" + tar -xf themes/flood-for-transmission.zip -C "$TRANSMISSION_ROOT_PATH/themes" UNZIP_SUCCESS=$? else echo "Warning: Neither 'unzip' nor 'tar' is installed. Skipping theme extraction." @@ -40,6 +40,8 @@ if [ -f .env ]; then echo "Themes directory already exists. Skipping extraction." fi + chown -R 1000:1000 "$TRANSMISSION_ROOT_PATH" + echo "Check Finish." else