Add the ability to disable install
This commit is contained in:
parent
bf2122e08f
commit
358b934206
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
variables.conf
|
variables.conf
|
||||||
*.key
|
*.key
|
||||||
|
.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..."
|
||||||
sudo cp $(dirname "$0")/systemd-templates/dns-update.service /etc/systemd/system/
|
sudo cp $(dirname "$0")/systemd-templates/dns-update.service /etc/systemd/system/
|
||||||
sudo cp $(dirname "$0")/systemd-templates/dns-update.timer /etc/systemd/system/
|
sudo cp $(dirname "$0")/systemd-templates/dns-update.timer /etc/systemd/system/
|
||||||
|
Loading…
Reference in New Issue
Block a user