internalize blocklist-update.sh

This commit is contained in:
aptalca
2020-03-30 10:08:06 -04:00
parent 9b93568a3f
commit 2af266be76
5 changed files with 3 additions and 5 deletions

View File

@@ -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