mirror of
https://github.com/elisspace/rtinst.git
synced 2026-10-03 15:49:54 +00:00
Update rtinst.sh
This commit is contained in:
@@ -687,9 +687,13 @@ chown -R $user:$user $home
|
||||
|
||||
cd $home
|
||||
|
||||
rtgetscripts /usr/local/bin/edit_su
|
||||
edit_su
|
||||
rm /usr/local/bin/edit_su
|
||||
if [ -z "$(grep "ALL ALL = NOPASSWD: /usr/local/bin/rtsetpass" /etc/sudoers)" ]$
|
||||
echo "ALL ALL = NOPASSWD: /usr/local/bin/rtsetpass" | (EDITOR="tee -a" visudo)
|
||||
fi
|
||||
|
||||
#rtgetscripts /usr/local/bin/edit_su
|
||||
#edit_su
|
||||
#rm /usr/local/bin/edit_su
|
||||
|
||||
su $user -c '/usr/local/bin/rt restart'
|
||||
su $user -c '/usr/local/bin/rt -i restart'
|
||||
|
||||
Reference in New Issue
Block a user