File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
docker-mods/qbittorrent/root/etc
s6-overlay/s6-rc.d/init-mod-themepark Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "${TP_HOTIO}" = true ]; then
1010 APP_FILEPATH='/config/config/qBittorrent.conf'
1111fi
1212
13+ # Validate that the config file exist
14+ if [[ ! -f "${APP_FILEPATH}" ]]; then
15+ echo "qBittorrent config file not found at ${APP_FILEPATH}. Please ensure qBittorrent is configured correctly."
16+ exit 0
17+ fi
18+
1319# Backup config
1420if [[ ! -f "${APP_FILEPATH}.bak" ]]; then
1521 echo "Creating qBittorrent.conf backup in /config."
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "${TP_HOTIO}" = true ]; then
1010 APP_FILEPATH='/config/config/qBittorrent.conf'
1111fi
1212
13+ # Validate that the config file exist
14+ if [[ ! -f "${APP_FILEPATH}" ]]; then
15+ echo "qBittorrent config file not found at ${APP_FILEPATH}. Please ensure qBittorrent is configured correctly."
16+ exit 0
17+ fi
18+
1319# Backup config
1420if [[ ! -f "${APP_FILEPATH}.bak" ]]; then
1521 echo "Creating qBittorrent.conf backup in /config."
You can’t perform that action at this time.
0 commit comments