diff --git a/install.sh b/install.sh index 57f2476..a94047d 100755 --- a/install.sh +++ b/install.sh @@ -51,6 +51,7 @@ if [ "$dl_server" = "yes" ]; then $sudo sed -i -e "s/PH_USER/$user/g" /etc/systemd/system/transmission-daemon.service $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/systemd-templates/transmission-daemon.timer /etc/systemd/system/ $sudo cp $run_directory/systemd-templates/transmission-vpn.service /etc/systemd/system/ $sudo sed -i -e "s:PH_DIRECTORY:$run_directory:g" /etc/systemd/system/transmission-vpn.service $sudo cp $run_directory/systemd-templates/transmission-vpn.timer /etc/systemd/system/ @@ -59,6 +60,8 @@ if [ "$dl_server" = "yes" ]; then $sudo sed -i -e "s:PH_CRT:$crt_path:g" /etc/nginx/sites-available/transmission $sudo sed -i -e "s:PH_KEY:$key_path:g" /etc/nginx/sites-available/transmission $sudo ln -sf ../sites-available/transmission /etc/nginx/sites-enabled/transmission + $sudo systemctl disable transmission-daemon.service + $sudo systemctl enable transmission-daemon.timer fi if [ "$ftp_server" = "yes" ]; then