Add the ability to disable install
This commit is contained in:
1 parent
779143ff40
commit
f7c40ab06b
2 files changed
+6
No files matched your search
@@ -1 +1,2 @@
|
||||
variables.conf
|
||||
.disabled
|
||||
@@ -2,6 +2,11 @@
|
||||
|
||||
source "$(dirname "$0")/variables.conf"
|
||||
|
||||
if [ -f $run_directory/.disabled ]; then
|
||||
echo "Installation is disabled. Exiting..."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# NOTE: the handling of init/service manager comes from this discussion:
|
||||
# https://unix.stackexchange.com/questions/18209/detect-init-system-using-the-shell
|
||||
|
||||
|
||||
Reference in new issue
Block a user