From 6dda6ac30481ed53748a9cf4cc09e0bdb68a768a Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Thu, 17 Mar 2022 14:57:53 +0100 Subject: [PATCH] Add the ability to disable install --- .gitignore | 2 +- install.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index aa640e0..1a62622 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ mounts.conf.d/* - +.disabled diff --git a/install.sh b/install.sh index 8154cbd..048ea1d 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,10 @@ #!/usr/bin/env bash +if [ -f $run_directory/.disabled ]; then + echo "Installation is disabled. Exiting..." + exit 0 +fi + echo "Copying Systemd units to system directory..." for f in $(dirname "$0")/mounts.conf.d/*.conf; do if [ ! -e "$f" ]; then