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}"