full path to settings.json

This commit is contained in:
Paul Hendryx
2016-11-03 07:12:13 -04:00
parent 6bad2d716e
commit f7490f4fd7

View File

@@ -1,7 +1,7 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
BLOCKLIST_ENABLED=`jq -r '.["blocklist-enabled"]' settings.json` BLOCKLIST_ENABLED=`jq -r '.["blocklist-enabled"]' /config/settings.json`
BLOCKLIST_URL=`jq -r '.["blocklist-url"]' settings.json | sed 's/\&/\&/g'` BLOCKLIST_URL=`jq -r '.["blocklist-url"]' /config/settings.json | sed 's/\&/\&/g'`
if [ $BLOCKLIST_ENABLED == true ]; then if [ $BLOCKLIST_ENABLED == true ]; then
mkdir -p /tmp/blocklists mkdir -p /tmp/blocklists