Skip to content

Commit

Permalink
Trying to fix #2332 for default user
Browse files Browse the repository at this point in the history
  • Loading branch information
kalxas committed May 16, 2021
1 parent b77061e commit 560cf58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/setdown.sh
Expand Up @@ -256,6 +256,7 @@ systemctl disable redis.service
if [ ! -e /etc/sudoers.d/tomcat ] ; then
cat << EOF > /etc/sudoers.d/tomcat
%users ALL=(root) NOPASSWD: /usr/sbin/service tomcat9 start,/usr/sbin/service tomcat9 stop,/usr/sbin/service tomcat9 status
%user ALL=(root) NOPASSWD: /usr/sbin/service tomcat9 start,/usr/sbin/service tomcat9 stop,/usr/sbin/service tomcat9 status
EOF
fi
chmod 440 /etc/sudoers.d/tomcat
Expand Down

0 comments on commit 560cf58

Please sign in to comment.