Correct local path in install script

This commit is contained in:
Alexandre CATTEAU 2022-08-28 12:41:33 +02:00
parent d119bd485a
commit 3d8c091ee4

View File

@ -11,7 +11,7 @@ echo "Copying Systemd units to system directory..."
sudo cp $run_directory/systemd-templates/dns-update.service /etc/systemd/system/
sudo cp $run_directory/systemd-templates/dns-update.timer /etc/systemd/system/
sudo sed -i -e "s/PH_USER/$(whoami)/g" /etc/systemd/system/dns-update.service
sudo sed -i -e "s:PH_DIRECTORY:$(pwd):g" /etc/systemd/system/dns-update.service
sudo sed -i -e "s:PH_DIRECTORY:$run_directory:g" /etc/systemd/system/dns-update.service
echo "Reloading Systemd..."
sudo systemctl daemon-reload