Update install script with new good practices (run_directory)

This commit is contained in:
Alexandre CATTEAU 2022-08-28 12:54:43 +02:00
parent a463e1e742
commit dfc59eb870

View File

@ -16,7 +16,7 @@ fi
echo "Copying WebSSH unit to system directory..."
$sudo cp systemd-templates/boot-sms.service /etc/systemd/system/
$sudo sed -i -e "s:PH_DIRECTORY:$(pwd):g" /etc/systemd/system/boot-sms.service
$sudo sed -i -e "s:PH_DIRECTORY:$run_directory:g" /etc/systemd/system/boot-sms.service
echo "Reloading Systemd..."
$sudo systemctl daemon-reload