Skip to content

Commit 879cc6d

Browse files
committed
README : fix standalone mod (thks @earthly-alien) #17 + RUN : add debug infos
1 parent 4755f39 commit 879cc6d

File tree

2 files changed

+28
-6
lines changed
  • root/etc/s6-overlay/s6-rc.d/svc-mod-gluetun-sync-port

2 files changed

+28
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ GSP_qbt_gtn_sync_port:
6060
image: ghcr.io/linuxserver/baseimage-alpine:edge
6161
container_name: GSP_qbt_gtn_sync_port
6262
environment:
63-
- DOCKER_MODS=ghcr.io/t-anc/mod-qbittorrent-sync-port:main
63+
- DOCKER_MODS=ghcr.io/t-anc/gsp-qbittorent-gluetun-sync-port-mod:main
6464
# Of course this is an API Key exemple, don't use this
6565
- GSP_GTN_API_KEY=yOdKVNFEA3/BSIWhPZohxppHd9I6bHiSJ
6666
network_mode: container:gluetun

root/etc/s6-overlay/s6-rc.d/svc-mod-gluetun-sync-port/run

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,33 @@ log(){
4242
echo "$(date +"%x %T") [GSP] - ${1}"
4343
}
4444

45+
if [ "${DEBUG,,}" = "true" ]; then
46+
log "Debug mode enabled."
47+
echo "\
48+
+---------------------------------------------------------+
49+
| Gluetun sync port (GSP) DEBUG INFO |
50+
| Please anonymise credentials. |
51+
+---------------------------------------------------------+
52+
| INPUT Variables : |
53+
+---------------------------------------------------------+
54+
$(env | grep 'GSP')
55+
+---------------------------------------------------------+
56+
| INTERNAL Variables : |
57+
+---------------------------------------------------------+
58+
| MAX_SLEEP_TIME = ${MAX_SLEEP_TIME}
59+
| RETRY_DELAY = ${RETRY_DELAY}
60+
| INIT_RETRY_WAIT = ${INIT_RETRY_WAIT}
61+
| GTN_PORT_INDEX = ${GTN_PORT_INDEX}
62+
| GLUETUN = ${GLUETUN}
63+
| QBITTORRENT = ${QBITTORRENT}
64+
| QBT_USERNAME = ${QBT_USERNAME}
65+
| QBT_PASSWORD (to be anonymised) = ${QBT_PASSWORD}
66+
| GTN_API_KEY (to be anonymised) = ${GTN_API_KEY}
67+
+---------------------------------------------------------+
68+
"
69+
70+
fi
71+
4572

4673
qbt_login(){
4774
curl --fail --silent \
@@ -146,11 +173,6 @@ get_ports(){
146173
}
147174
}
148175

149-
if [ "${DEBUG,,}" = "true" ]; then
150-
log "Debug mode enabled."
151-
set -x
152-
fi
153-
154176

155177
log "Waiting for Qbittorrent WebUI ..."
156178
curl --retry "${INIT_RETRY_WAIT}" --retry-all-errors --retry-delay 6 -s -o /dev/null "${QBITTORRENT}" || \

0 commit comments

Comments
 (0)