From 7ea491fbb7548f0bf9d61a27a2b6f253eba6b3b1 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Sat, 3 Jun 2023 18:14:39 +0200 Subject: [PATCH] Update install script --- install.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index ad693a8..4c04306 100755 --- a/install.sh +++ b/install.sh @@ -10,11 +10,10 @@ if [ -f $run_directory/.disabled ]; then fi echo "Copying Systemd units to system directory..." -mkdir /etc/systemd/system -cp $run_directory/systemd-templates/set-ip-routes.service /etc/systemd/system/ -sed -i -e "s/PH_DNS/$dns_server/g" /etc/systemd/system/set-ip-routes.service -sed -i -e "s:PH_NETWORK:$target_network:g" /etc/systemd/system/set-ip-routes.service -cp $run_directory/systemd-templates/set-ip-routes.path /etc/systemd/system/ +cp $run_directory/systemd-templates/set-ip-routes.service /storage/.config/system.d/ +sed -i -e "s/PH_DNS/$dns_server/g" /storage/.config/system.d/set-ip-routes.service +sed -i -e "s:PH_NETWORK:$target_network:g" /storage/.config/system.d/set-ip-routes.service +cp $run_directory/systemd-templates/set-ip-routes.path /storage/.config/system.d/ echo "Reloading Systemd..." systemctl daemon-reload