Add timer for transmission-daemon at boot
This commit is contained in:
parent
5722bc62da
commit
24e1a6221a
@ -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
|
||||
|
Reference in New Issue
Block a user