commit | 91b0ef97b0db87eea95d42d1af971999dd82fa7e | [log] [tgz] |
---|---|---|
author | Tony Mack <tony.mack@gmail.com> | Tue May 10 16:27:55 2016 +0000 |
committer | Tony Mack <tony.mack@gmail.com> | Tue May 10 16:27:55 2016 +0000 |
tree | 4af5cadbe795002a0a112ae3fd6ed083d0fb43e7 | |
parent | 42e2a7e44985b8e31e042d495192fb80846c4e49 [diff] [blame] |
initial checkin
diff --git a/containers/nagios/start.sh b/containers/nagios/start.sh new file mode 100755 index 0000000..f295e5b --- /dev/null +++ b/containers/nagios/start.sh
@@ -0,0 +1,10 @@ +#!/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