mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-07-22 05:31:58 -04:00
Update qbittorrent image and apply changes using casaos-cli
This commit is contained in:
5
change-qbittorrent-image/README.md
Normal file
5
change-qbittorrent-image/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# Run command
|
||||
|
||||
```bash
|
||||
bash -c "$(wget -qLO - https://raw.githubusercontent.com/bigbeartechworld/big-bear-scripts/master/change-qbittorrent-image/run.sh)"
|
||||
```
|
||||
19
change-qbittorrent-image/run.sh
Normal file
19
change-qbittorrent-image/run.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Path to the docker-compose.yml file
|
||||
COMPOSE_FILE="/var/lib/casaos/apps/qbittorrent/docker-compose.yml"
|
||||
|
||||
# Update the docker-compose.yml file
|
||||
sed -i 's/hotio\/qbittorrent:release-4.6.1/hotio\/qbittorrent:release-4.6.2/' "$COMPOSE_FILE"
|
||||
|
||||
# Apply changes using casaos-cli
|
||||
casaos-cli app-management apply "qbittorrent" --file="$COMPOSE_FILE"
|
||||
|
||||
# Wait for the container to reload
|
||||
echo "Waiting for qBittorrent to restart..."
|
||||
sleep 10 # Adjust the sleep time if needed
|
||||
|
||||
# Extract and echo required information from Docker logs
|
||||
docker logs qbittorrent 2>&1 | grep -A 5 "******** Information ********" | while read -r line; do
|
||||
echo "$line"
|
||||
done
|
||||
Reference in New Issue
Block a user