mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-11-04 18:45:49 +01:00
internalize blocklist-update.sh
This commit is contained in:
@@ -8,10 +8,6 @@ mkdir -p \
|
||||
[[ ! -f /config/settings.json ]] && cp \
|
||||
/defaults/settings.json /config/settings.json
|
||||
|
||||
# copy blocklist-update script
|
||||
[[ ! -f /config/blocklist-update.sh ]] && cp \
|
||||
/defaults/blocklist-update.sh /config/blocklist-update.sh
|
||||
|
||||
if [ ! -z "$USER" ] && [ ! -z "$PASS" ]; then
|
||||
sed -i '/rpc-authentication-required/c\ "rpc-authentication-required": true,' /config/settings.json
|
||||
sed -i "/rpc-username/c\ \"rpc-username\": \"$USER\"," /config/settings.json
|
||||
|
||||
Reference in New Issue
Block a user