diff options
author | BeatLink <beatlink@protonmail.com> | 2019-07-04 03:18:05 -0500 |
---|---|---|
committer | BeatLink <beatlink@protonmail.com> | 2019-07-04 03:18:05 -0500 |
commit | fc3b107b7000ec24406d2e6d83bc8623b94c3246 (patch) | |
tree | 15fa35f2c9832caf1c0bececc5895e9a238d8ac8 /settings/disable_settings.sh | |
parent | Add support for showing places at about:places (diff) | |
download | librewolf-linux-fc3b107b7000ec24406d2e6d83bc8623b94c3246.tar.gz librewolf-linux-fc3b107b7000ec24406d2e6d83bc8623b94c3246.tar.bz2 librewolf-linux-fc3b107b7000ec24406d2e6d83bc8623b94c3246.zip |
update settings script
Diffstat (limited to 'settings/disable_settings.sh')
-rwxr-xr-x | settings/disable_settings.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/settings/disable_settings.sh b/settings/disable_settings.sh index 6ade34a..b3167d4 100755 --- a/settings/disable_settings.sh +++ b/settings/disable_settings.sh @@ -1,7 +1,10 @@ #!/bin/bash -# This script will move the settings back to the storage folder, disabling it +# Moves the settings from the main program folder to the settings folder, disabling it -mv ../defaults/pref/local-settings.js ./defaults/pref/local-settings.js; -mv ../distribution/policies.json ./distribution/policies.json; -mv ../librewolf.cfg ./librewolf.cfg; +SETTINGS_FOLDER=$(realpath $(dirname $0)); +PROGRAM_FOLDER=$SETTINGS_FOLDER/../; + +mv $PROGRAM_FOLDER/defaults/pref/local-settings.js $SETTINGS_FOLDER/defaults/pref/local-settings.js; +mv $PROGRAM_FOLDER/distribution/policies.json $SETTINGS_FOLDER/distribution/policies.json; +mv $PROGRAM_FOLDER/librewolf.cfg $SETTINGS_FOLDER/librewolf.cfg; |