Tony Mack | 81b1e7f | 2016-05-10 16:27:55 +0000 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | if [ ! -f ${NAGIOS_HOME}/etc/htpasswd.users ] ; then | ||||
4 | htpasswd -c -b -s ${NAGIOS_HOME}/etc/htpasswd.users ${NAGIOSADMIN_USER} ${NAGIOSADMIN_PASS} | ||||
5 | chown -R nagios.nagios ${NAGIOS_HOME}/etc/htpasswd.users | ||||
6 | fi | ||||
7 | |||||
8 | exec runsvdir /etc/sv | ||||
9 | |||||
10 | /etc/init.d/apache2 start |