Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- adduser --system --uid=$(stat -c "%u" /var/www) "host"
- echo "APACHE_RUN_USER=host" >> /etc/apache2/envvars
- SERVER_NAME=${SERVER_NAME:=localhost}
- echo "ServerName $SERVER_NAME" > /etc/apache2/conf.d/server-name
- /etc/init.d/apache2 start
- bash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement