Skip to content

Commit 2a52baf

Browse files
authored
Update qbittorrent.sh (#5661)
1 parent 28d3297 commit 2a52baf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ct/qbittorrent.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function update_script() {
3131
touch /opt/${APP}_version.txt
3232
mkdir -p $HOME/.config/qBittorrent/
3333
mkdir -p /opt/qbittorrent/
34-
mv /.config/qBittorrent $HOME/.config/
34+
[ -d "/.config/qBittorrent" ] && mv /.config/qBittorrent "$HOME/.config/"
3535
$STD apt-get remove --purge -y qbittorrent-nox
3636
sed -i 's@ExecStart=/usr/bin/qbittorrent-nox@ExecStart=/opt/qbittorrent/qbittorrent-nox@g' /etc/systemd/system/qbittorrent-nox.service
3737
systemctl daemon-reload
@@ -67,4 +67,4 @@ description
6767
msg_ok "Completed Successfully!\n"
6868
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
6969
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
70-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8090${CL}"
70+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8090${CL}"

0 commit comments

Comments
 (0)