move aurbuilder sudo right to /etc/sudoers.d/aurbuilder

This commit is contained in:
MatMoul 2015-10-13 21:52:44 +02:00
parent 3c6145b1ad
commit d2a7713759

View file

@ -45,9 +45,11 @@ checkaurdependencies(){
newpass=$(< /dev/urandom tr -dc "@#*%&_A-Z-a-z-0-9" | head -c16)
useradd -r -N -M -d /home/.aurbuilder -s /usr/bin/nologin aurbuilder
echo -e "$newpass\n$newpass\n"|passwd aurbuilder
newpass=""
fi
if [ ! -f /etc/sudoers.d/aurbuilder ]; then
echo "aurbuilder ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/aurbuilder
echo "root ALL=(aurbuilder) NOPASSWD: ALL" >> /etc/sudoers.d/aurbuilder
newpass=""
fi
}
checkarchlinuxfrrepo(){