Update install script with new good practices (run_directory)

This commit is contained in:
Alexandre CATTEAU 2022-08-28 12:55:27 +02:00
parent 0efdf8ee11
commit 7354192d94

View File

@ -16,7 +16,7 @@ sudo sed -i -e "s/PH_USER/$user/g" /etc/systemd/system/transmission-daemon.servi
sudo sed -i -e "s/PH_PASSWORD/$password/g" /etc/systemd/system/transmission-daemon.service
sudo sed -i -e "s:PH_DL_LOCATION:$dl_location:g" /etc/systemd/system/transmission-daemon.service
sudo cp $run_directory/transmission-vpn.service /etc/systemd/system/
sudo sed -i -e "s:PH_DIRECTORY:$(pwd):g" /etc/systemd/system/transmission-vpn.service
sudo sed -i -e "s:PH_DIRECTORY:$run_directory:g" /etc/systemd/system/transmission-vpn.service
sudo cp $run_directory/transmission-vpn.timer /etc/systemd/system/
echo "Reloading Systemd..."