Add the ability to disable install
This commit is contained in:
parent
8531bd3ffb
commit
6dda6ac304
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
mounts.conf.d/*
|
mounts.conf.d/*
|
||||||
|
.disabled
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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..."
|
echo "Copying Systemd units to system directory..."
|
||||||
for f in $(dirname "$0")/mounts.conf.d/*.conf; do
|
for f in $(dirname "$0")/mounts.conf.d/*.conf; do
|
||||||
if [ ! -e "$f" ]; then
|
if [ ! -e "$f" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user