From 2a52baf57e51189621e25cd185f9634c735bee3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Thu, 3 Jul 2025 11:12:15 +0200 Subject: [PATCH] Update qbittorrent.sh (#5661) --- ct/qbittorrent.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/qbittorrent.sh b/ct/qbittorrent.sh index 37338c621..833e1eda7 100644 --- a/ct/qbittorrent.sh +++ b/ct/qbittorrent.sh @@ -31,7 +31,7 @@ function update_script() { touch /opt/${APP}_version.txt mkdir -p $HOME/.config/qBittorrent/ mkdir -p /opt/qbittorrent/ - mv /.config/qBittorrent $HOME/.config/ + [ -d "/.config/qBittorrent" ] && mv /.config/qBittorrent "$HOME/.config/" $STD apt-get remove --purge -y qbittorrent-nox sed -i 's@ExecStart=/usr/bin/qbittorrent-nox@ExecStart=/opt/qbittorrent/qbittorrent-nox@g' /etc/systemd/system/qbittorrent-nox.service systemctl daemon-reload @@ -67,4 +67,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8090${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8090${CL}"