Add the ability to disable install

This commit is contained in:
Alexandre CATTEAU 2022-03-17 14:58:19 +01:00
parent bf2122e08f
commit 358b934206
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
variables.conf
*.key
.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..."
sudo cp $(dirname "$0")/systemd-templates/dns-update.service /etc/systemd/system/
sudo cp $(dirname "$0")/systemd-templates/dns-update.timer /etc/systemd/system/