1
0
mirror of https://github.com/elisspace/rtinst.git synced 2026-08-31 08:32:36 +00:00

Merge pull request #27 from arakasi72/develop

Update rtadduser
This commit is contained in:
arakasi72
2014-10-13 21:39:34 +01:00

View File

@@ -218,7 +218,7 @@ if [ -d "/var/www/rutorrent/conf/users/$user" ]
fi
check_ssh=1
if groups $user | grep -q -E ' sshuser(\s|$)'
if groups $user | grep -q -E ' sshuser(\s|$)' || groups $user | grep -q -E ' sudo(\s|$)'
then
echo "ssh already granted"
check_ssh=0
@@ -385,7 +385,7 @@ echo "autodl port: $adlport"
echo "autodl pass: $adlpass"
echo "crontab entries made, rtorrent and irssi will start on boot"
echo
if groups $user | grep -q -E ' sshuser(\s|$)'; then
if groups $user | grep -q -E ' sshuser(\s|$)' || groups $user | grep -q -E ' sudo(\s|$)'
echo "$user has SSH access on port $sshport" | tee -a $home/rtinst.info
echo
fi