From 24e1a6221a0be4bb0a85e4a4696d642589cf2b1d Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Sun, 12 Feb 2023 18:04:11 +0100 Subject: [PATCH] Add timer for transmission-daemon at boot --- install.sh | 3 +++ 1 file changed, 3 insertions(+) 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