From 0b2d97f260978bcc13cb1eabc73d8b306ee3671b Mon Sep 17 00:00:00 2001 From: arakasi72 Date: Sun, 19 Oct 2014 02:03:16 +0100 Subject: [PATCH] Update rtupdate --- rtupdate | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/rtupdate b/rtupdate index c2531b6..4efbbe0 100644 --- a/rtupdate +++ b/rtupdate @@ -90,9 +90,6 @@ then get_scripts rt /usr/local/bin/rt fi - -(crontab -u $SUDO_USER -l) | perl -nle 's/^([^#@])/# $1/;print' | crontab -u $SUDO_USER - -sudo -u $SUDO_USER rt stop cd $home if [ -d source ]; then cd source @@ -120,8 +117,17 @@ make -j2 >> /dev/null 2>&1 make install >> /dev/null 2>&1 ldconfig -sudo -u $SUDO_USER rt start -(crontab -u $SUDO_USER -l) | perl -nle 's/^#\s*([0-9*])/$1/;print' | crontab -u $SUDO_USER - +cd /var/www/rutorrent/conf/users +user_list=* + +for user in $user_list + do + echo "Restarting rtorrent for $user" + sudo -u $user rt restart >> /dev/null 2>&1 + done + +cd $home + echo echo "$libvers/$rtvers installed" echo