diff --git a/apps/movie-pilot/1.9.17/docker-compose.yml b/apps/movie-pilot/1.9.17/docker-compose.yml index d4288e94..ffa846a3 100644 --- a/apps/movie-pilot/1.9.17/docker-compose.yml +++ b/apps/movie-pilot/1.9.17/docker-compose.yml @@ -9,6 +9,8 @@ services: labels: createdBy: "Apps" restart: always + stdin_open: true + tty: true networks: - 1panel-network ports: diff --git a/apps/movie-pilot/2.2.4/docker-compose.yml b/apps/movie-pilot/2.2.4/docker-compose.yml index aba5ad7c..9f81e0f4 100644 --- a/apps/movie-pilot/2.2.4/docker-compose.yml +++ b/apps/movie-pilot/2.2.4/docker-compose.yml @@ -9,6 +9,8 @@ services: labels: createdBy: "Apps" restart: always + stdin_open: true + tty: true networks: - 1panel-network ports: @@ -21,8 +23,9 @@ services: volumes: - /var/run/docker.sock:/var/run/docker.sock - ${MOVIEPILOT_ROOT_PATH}/config:/config - - ${MOVIEPILOT_ROOT_PATH}/moviepilot:/moviepilot + - ${MOVIEPILOT_ROOT_PATH}/ms-playwright:/moviepilot/.cache/ms-playwright - ${MOVIEPILOT_ROOT_PATH}/download:/download + - ${MOVIEPILOT_ROOT_PATH}/media:/media - ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1} - ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2} - ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3} @@ -32,6 +35,7 @@ services: - PUID=0 - PGID=0 - UMASK=022 + - TZ=Asia/Shanghai - HTTP_PROXY=${PROXY_HOST} - HTTPS_PROXY=${PROXY_HOST} logging: diff --git a/apps/transmission/4.0.6/docker-compose.yml b/apps/transmission/4.0.6/docker-compose.yml index dbe20aae..fe1084a6 100644 --- a/apps/transmission/4.0.6/docker-compose.yml +++ b/apps/transmission/4.0.6/docker-compose.yml @@ -18,6 +18,7 @@ services: - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} - ${ENV_FILE:-/etc/1panel/envs/default.env} volumes: + - ${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 07fb8c3f..2651e63f 100644 --- a/apps/transmission/4.0.6/scripts/init.sh +++ b/apps/transmission/4.0.6/scripts/init.sh @@ -10,6 +10,36 @@ if [ -f .env ]; then echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + # setup-2 install theme + 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/themes" + UNZIP_SUCCESS=$? + elif command -v tar >/dev/null 2>&1; then + 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." + UNZIP_SUCCESS=1 + fi + + if [ $UNZIP_SUCCESS -eq 0 ]; then + echo "Theme successfully extracted." + + if grep -q "^TRANSMISSION_WEB_HOME=" .env; then + sed -i 's|^TRANSMISSION_WEB_HOME=.*|TRANSMISSION_WEB_HOME=/themes/flood-for-transmission|' .env + else + echo "TRANSMISSION_WEB_HOME=/themes/flood-for-transmission" >> .env + fi + else + echo "Warning: Failed to extract the theme archive. Proceeding without extracted theme." + fi + else + echo "Themes directory already exists. Skipping extraction." + fi + echo "Check Finish." else diff --git a/apps/transmission/4.0.6/themes/flood-for-transmission.zip b/apps/transmission/4.0.6/themes/flood-for-transmission.zip new file mode 100644 index 00000000..0b5af67b Binary files /dev/null and b/apps/transmission/4.0.6/themes/flood-for-transmission.zip differ