blob: f295e5b1dbaf4d572ad1882c1d80b31fa00df6de [file] [log] [blame]
Tony Mack81b1e7f2016-05-10 16:27:55 +00001#!/bin/bash
2
3if [ ! -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
6fi
7
8exec runsvdir /etc/sv
9
10/etc/init.d/apache2 start