Add the ability to disable install

This commit is contained in:
Alexandre CATTEAU 2022-03-17 14:55:37 +01:00
parent 779143ff40
commit f7c40ab06b
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
variables.conf
.disabled

View File

@ -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