Add the ability to disable install
This commit is contained in:
parent
779143ff40
commit
f7c40ab06b
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user