From f7c40ab06bbe11f9845d2017a180fae85ef11c40 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Thu, 17 Mar 2022 14:55:37 +0100 Subject: [PATCH] Add the ability to disable install --- .gitignore | 1 + install.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index bfdbd30..99a3140 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ variables.conf +.disabled diff --git a/install.sh b/install.sh index fc17a97..91b2f18 100755 --- a/install.sh +++ b/install.sh @@ -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