Update install script
This commit is contained in:
parent
eed03938dc
commit
7ea491fbb7
@ -10,11 +10,10 @@ if [ -f $run_directory/.disabled ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Copying Systemd units to system directory..."
|
echo "Copying Systemd units to system directory..."
|
||||||
mkdir /etc/systemd/system
|
cp $run_directory/systemd-templates/set-ip-routes.service /storage/.config/system.d/
|
||||||
cp $run_directory/systemd-templates/set-ip-routes.service /etc/systemd/system/
|
sed -i -e "s/PH_DNS/$dns_server/g" /storage/.config/system.d/set-ip-routes.service
|
||||||
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" /storage/.config/system.d/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 /storage/.config/system.d/
|
||||||
cp $run_directory/systemd-templates/set-ip-routes.path /etc/systemd/system/
|
|
||||||
|
|
||||||
echo "Reloading Systemd..."
|
echo "Reloading Systemd..."
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
Loading…
Reference in New Issue
Block a user