We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 504b2d6 commit 5d495c4Copy full SHA for 5d495c4
mupsetup.sh
@@ -14,12 +14,12 @@ fi
14
useradd $username
15
echo $username:$password | chpasswd
16
adduser $username sudo
17
-echo "# meteorup-server-script\n%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
+echo "# meteorup-server-script\n%sudo ALL=(ALL) NOPASSWD:ALL" >> $sudoers
18
service sudo restart
19
20
if grep -q "%sudo ALL=(ALL) NOPASSWD:ALL" $sudoers; then
21
echo "The script worked correctly, you can now use the new user in your mup.json"
22
exit
23
fi
24
25
-echo "Check the sudoers file with visudo for %sudo ALL=(ALL) NOPASSWD:ALL"
+echo "The script could not modify the sudoers file check with visudo for %sudo ALL=(ALL) NOPASSWD:ALL"
0 commit comments