diff --git a/install.sh b/install.sh index ed1e80d..e9d83bf 100755 --- a/install.sh +++ b/install.sh @@ -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