diff options
author | BeatLink <beatlink@protonmail.com> | 2019-07-14 13:17:40 -0500 |
---|---|---|
committer | BeatLink <beatlink@protonmail.com> | 2019-07-14 13:17:40 -0500 |
commit | aafbd45b66c4f3304d7adfa001e40ebbb449bcc5 (patch) | |
tree | 3799aca780eb37d38acc17888069fa6896376555 /settings/toggle-settings.sh | |
parent | Move install settings to librewolf (diff) | |
download | librewolf-linux-aafbd45b66c4f3304d7adfa001e40ebbb449bcc5.tar.gz librewolf-linux-aafbd45b66c4f3304d7adfa001e40ebbb449bcc5.tar.bz2 librewolf-linux-aafbd45b66c4f3304d7adfa001e40ebbb449bcc5.zip |
Merge settings management
Diffstat (limited to 'settings/toggle-settings.sh')
-rw-r--r-- | settings/toggle-settings.sh | 19 |
1 files changed, 19 insertions, 0 deletions
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 + + |