From 7646bd78c0098248550143ecc8e12a52a1fea5f2 Mon Sep 17 00:00:00 2001 From: MarkusMcNugen Date: Sun, 4 Feb 2018 21:15:25 -0500 Subject: [PATCH] Update qbittorrent.init --- qbittorrent/qbittorrent.init | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qbittorrent/qbittorrent.init b/qbittorrent/qbittorrent.init index 617d45e..a71b802 100644 --- a/qbittorrent/qbittorrent.init +++ b/qbittorrent/qbittorrent.init @@ -27,7 +27,7 @@ QBTLOG="qbittorrent-daemon.log" DAEMON="/usr/bin/qbittorrent-nox" DAEMON_ARGS="--profile=/config" -DAEMONSTRING="$DAEMON $DAEMON_ARGS >> $QBTLOG 2>&1" +DAEMONSTRING="$DAEMON $DAEMON_ARGS >> $QBTLOGPATH$QBTLOG 2>&1" export DBUS_SESSION_BUS_ADDRESS="" @@ -59,10 +59,10 @@ do_start() echo "Logging to $QBTLOGPATH$QBTLOG." else echo "Log file $QBTLOGPATH$QBTLOG doesn't exist. Creating it..." - touch $QBTLOG - chown $USER:$GROUP $QBTLOGPATH$QBTLOG - if [ -f $QBTLOG ]; + touch $QBTLOGPATH$QBTLOG + if [ -f $QBTLOGPATH$QBTLOG ]; then + chown $USER:$GROUP $QBTLOGPATH$QBTLOG echo "Logfile created. Logging to $QBTLOGPATH$QBTLOG" else echo "Couldn't create logfile $QBTLOGPATH$QBTLOG. Please investigate."