diff options
Diffstat (limited to 'network/qbittorrent/rc.qbittorrent-nox.new')
-rw-r--r-- | network/qbittorrent/rc.qbittorrent-nox.new | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/network/qbittorrent/rc.qbittorrent-nox.new b/network/qbittorrent/rc.qbittorrent-nox.new index 9b78744ba4..aa916d8096 100644 --- a/network/qbittorrent/rc.qbittorrent-nox.new +++ b/network/qbittorrent/rc.qbittorrent-nox.new @@ -8,12 +8,12 @@ # To run this script from rc.local you must run it as a non-root user. # # Example: -# /bin/su - david -c /etc/rc.d/rc.qbittorrent-nox start 9000 +# /bin/su - david -c "/etc/rc.d/rc.qbittorrent-nox start 9000" # Program output is sent to /tmp/qbittorrent-nox-$USER # First some checks to see what's what. -if [ "$USER" = "root" ] && [ "$1" = "start" ]; then +if [ "$USER" = "root" ] && [[ "$1" =~ start ]]; then echo "Do not start the daemon as root." >/dev/stderr exit 1 fi |