Update .seedbox_installation.sh

This commit is contained in:
jerry048 2021-06-26 18:09:26 +08:00 committed by GitHub
parent d03898db2a
commit a5fb28a2e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -69,6 +69,7 @@ RestartSec=10
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
sudo -u $username mkdir -p /home/$username/qbittorrent/Downloads sudo -u $username mkdir -p /home/$username/qbittorrent/Downloads
mkdir -p /home/$username/.config/qBittorrent && chown $username /home/$username/.config/qBittorrent
systemctl enable qbittorrent-nox@$username systemctl enable qbittorrent-nox@$username
systemctl start qbittorrent-nox@$username systemctl start qbittorrent-nox@$username
} }
@ -193,4 +194,4 @@ EOF
chmod +x $HOME/.autoremove.sh chmod +x $HOME/.autoremove.sh
apt-get -qqy install screen > /dev/null apt-get -qqy install screen > /dev/null
screen -dmS autoremove-torrents $HOME/.autoremove.sh screen -dmS autoremove-torrents $HOME/.autoremove.sh
} }