From aafbd45b66c4f3304d7adfa001e40ebbb449bcc5 Mon Sep 17 00:00:00 2001 From: BeatLink Date: Sun, 14 Jul 2019 13:17:40 -0500 Subject: Merge settings management --- settings/toggle-settings.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 settings/toggle-settings.sh (limited to 'settings/toggle-settings.sh') diff --git a/settings/toggle-settings.sh b/settings/toggle-settings.sh new file mode 100644 index 0000000..8a7b30a --- /dev/null +++ b/settings/toggle-settings.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +SCRIPT_FOLDER=$(realpath $(dirname $0)); + +# Enable settings ------------------------------------------------------------------------------------------ +if [ "$1" = "--enable" ]; then + mv $SCRIPT_FOLDER/"[DISABLED] local-settings.js" $SCRIPT_FOLDER/local-settings.js; + mv $SCRIPT_FOLDER/"[DISABLED] policies.json" $SCRIPT_FOLDER/policies.json; + mv $SCRIPT_FOLDER/"[DISABLED] librewolf.cfg" $SCRIPT_FOLDER/librewolf.cfg; +fi + +# Disable settings ------------------------------------------------------------------------------------------ +if [ "$1" = "--disable" ]; then + mv $SCRIPT_FOLDER/local-settings.js $SCRIPT_FOLDER/"[DISABLED] local-settings.js"; + mv $SCRIPT_FOLDER/policies.json $SCRIPT_FOLDER/"[DISABLED] policies.json"; + mv $SCRIPT_FOLDER/librewolf.cfg $SCRIPT_FOLDER/"[DISABLED] librewolf.cfg" ; +fi + + -- cgit