Add the ability to disable install

This commit is contained in:
Alexandre CATTEAU 2022-03-17 14:57:53 +01:00
parent 8531bd3ffb
commit 6dda6ac304
2 changed files with 6 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
mounts.conf.d/*
.disabled

View File

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