Switch sed delimeter in order to avoid conflict with paths
This commit is contained in:
parent
59aa52ba6c
commit
bc6e8ead0e
@ -4,7 +4,7 @@ echo "Copying Systemd units to system directory..."
|
||||
sudo cp systemd-templates/dns-update.service /etc/systemd/system/
|
||||
sudo cp 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:$(pwd):g" /etc/systemd/system/dns-update.service
|
||||
|
||||
echo "Reloading Systemd..."
|
||||
sudo systemctl daemon-reload
|
||||
|
Loading…
Reference in New Issue
Block a user