aboutsummaryrefslogtreecommitdiff
path: root/settings/enable_settings.sh
diff options
context:
space:
mode:
authorBeatLink <beatlink@protonmail.com>2019-07-04 03:18:05 -0500
committerBeatLink <beatlink@protonmail.com>2019-07-04 03:18:05 -0500
commitfc3b107b7000ec24406d2e6d83bc8623b94c3246 (patch)
tree15fa35f2c9832caf1c0bececc5895e9a238d8ac8 /settings/enable_settings.sh
parentAdd support for showing places at about:places (diff)
downloadlibrewolf-linux-fc3b107b7000ec24406d2e6d83bc8623b94c3246.tar.gz
librewolf-linux-fc3b107b7000ec24406d2e6d83bc8623b94c3246.tar.bz2
librewolf-linux-fc3b107b7000ec24406d2e6d83bc8623b94c3246.zip
update settings script
Diffstat (limited to 'settings/enable_settings.sh')
-rwxr-xr-xsettings/enable_settings.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/settings/enable_settings.sh b/settings/enable_settings.sh
index d612ae5..23533b6 100755
--- a/settings/enable_settings.sh
+++ b/settings/enable_settings.sh
@@ -1,5 +1,12 @@
#!/bin/bash
+# Copies settings from the settings folder to the main program folder, enabling them
-cp ./defaults/pref/local-settings.js ../defaults/pref/local-settings.js;
-cp ./distribution/policies.json ../distribution/policies.json;
-cp ./librewolf.cfg ../librewolf.cfg;
+SETTINGS_FOLDER=$(realpath $(dirname $0));
+PROGRAM_FOLDER=$SETTINGS_FOLDER/../;
+
+mkdir -p $PROGRAM_FOLDER/defaults/pref/;
+mkdir -p $PROGRAM_FOLDER/distribution/;
+
+cp $SETTINGS_FOLDER/defaults/pref/local-settings.js $PROGRAM_FOLDER/defaults/pref/local-settings.js;
+cp $SETTINGS_FOLDER/distribution/policies.json $PROGRAM_FOLDER/distribution/policies.json;
+cp $SETTINGS_FOLDER/librewolf.cfg $PROGRAM_FOLDER/librewolf.cfg;
bgstack15