Update install script with new good practices (run_directory)

This commit is contained in:
Alexandre CATTEAU 2022-08-28 12:52:54 +02:00
parent 2994c107dc
commit d485e21ce3

View File

@ -11,7 +11,7 @@ fi
echo "Copying Systemd units to system directory..."
sudo cp $run_directory/systemd-templates/firefox-backup-.service /etc/systemd/system/firefox-backup-$user.service
sudo sed -i -e "s/PH_USER/$user/g" /etc/systemd/system/firefox-backup-$user.service
sudo sed -i -e "s:PH_DIRECTORY:$(pwd):g" /etc/systemd/system/firefox-backup-$user.service
sudo sed -i -e "s:PH_DIRECTORY:$run_directory:g" /etc/systemd/system/firefox-backup-$user.service
echo "Reloading Systemd..."
sudo systemctl daemon-reload