更新 Transmission

This commit is contained in:
2025-12-13 07:26:55 +08:00
parent 3a530ebd46
commit c05fe3f1f1
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -20,9 +20,11 @@ if [ -f .env ]; then
if command -v unzip >/dev/null 2>&1; then
unzip -o themes/flood-for-transmission.zip -d "$TRANSMISSION_ROOT_PATH/themes"
unzip -o themes/transmission-web-control.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"
tar -xf themes/transmission-web-control.zip -C "$TRANSMISSION_ROOT_PATH/themes"
UNZIP_SUCCESS=$?
else
echo "Warning: Neither 'unzip' nor 'tar' is installed. Skipping theme extraction."