mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-14 22:55:11 +00:00
Update qbittorrent.init
This commit is contained in:
parent
7901a7c8b8
commit
7646bd78c0
@ -27,7 +27,7 @@ QBTLOG="qbittorrent-daemon.log"
|
|||||||
|
|
||||||
DAEMON="/usr/bin/qbittorrent-nox"
|
DAEMON="/usr/bin/qbittorrent-nox"
|
||||||
DAEMON_ARGS="--profile=/config"
|
DAEMON_ARGS="--profile=/config"
|
||||||
DAEMONSTRING="$DAEMON $DAEMON_ARGS >> $QBTLOG 2>&1"
|
DAEMONSTRING="$DAEMON $DAEMON_ARGS >> $QBTLOGPATH$QBTLOG 2>&1"
|
||||||
|
|
||||||
export DBUS_SESSION_BUS_ADDRESS=""
|
export DBUS_SESSION_BUS_ADDRESS=""
|
||||||
|
|
||||||
@ -59,10 +59,10 @@ do_start()
|
|||||||
echo "Logging to $QBTLOGPATH$QBTLOG."
|
echo "Logging to $QBTLOGPATH$QBTLOG."
|
||||||
else
|
else
|
||||||
echo "Log file $QBTLOGPATH$QBTLOG doesn't exist. Creating it..."
|
echo "Log file $QBTLOGPATH$QBTLOG doesn't exist. Creating it..."
|
||||||
touch $QBTLOG
|
touch $QBTLOGPATH$QBTLOG
|
||||||
chown $USER:$GROUP $QBTLOGPATH$QBTLOG
|
if [ -f $QBTLOGPATH$QBTLOG ];
|
||||||
if [ -f $QBTLOG ];
|
|
||||||
then
|
then
|
||||||
|
chown $USER:$GROUP $QBTLOGPATH$QBTLOG
|
||||||
echo "Logfile created. Logging to $QBTLOGPATH$QBTLOG"
|
echo "Logfile created. Logging to $QBTLOGPATH$QBTLOG"
|
||||||
else
|
else
|
||||||
echo "Couldn't create logfile $QBTLOGPATH$QBTLOG. Please investigate."
|
echo "Couldn't create logfile $QBTLOGPATH$QBTLOG. Please investigate."
|
||||||
|
Loading…
Reference in New Issue
Block a user