Similar to how aegir does it...

# allow aegir to restart apache
echo 'aegir ALL=NOPASSWD: /usr/sbin/apache2ctl' | sudo tee -a /etc/sudoers > /dev/null

Comments

MichaelCole’s picture

Status: Active » Fixed

Added, verify.

MichaelCole’s picture

Status: Fixed » Closed (won't fix)

Non-trivial because of ssl certs. Simple enough to use sudo.

# no sudo needed to restart apache
sudo adduser quickstart ssl-cert
echo 'quickstart ALL=NOPASSWD: /usr/sbin/apache2ctl' | sudo tee -a /etc/sudoers > /dev/null

MichaelCole’s picture

Status: Closed (won't fix) » Closed (fixed)
MichaelCole’s picture

sudo adduser quickstart root

even after adding quickstart to root group, has trouble binding to port 80. Skip.