blob: f295e5b1dbaf4d572ad1882c1d80b31fa00df6de [file] [log] [blame]
#!/bin/bash
if [ ! -f ${NAGIOS_HOME}/etc/htpasswd.users ] ; then
htpasswd -c -b -s ${NAGIOS_HOME}/etc/htpasswd.users ${NAGIOSADMIN_USER} ${NAGIOSADMIN_PASS}
chown -R nagios.nagios ${NAGIOS_HOME}/etc/htpasswd.users
fi
exec runsvdir /etc/sv
/etc/init.d/apache2 start