Skip to content

Commit

Permalink
use NAGIOS_USER & NAGIOS_GROUP for htpasswd fixes JasonRivers#39
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRivers committed Oct 16, 2017
1 parent d4d3ea3 commit a7bc813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fi

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"
chown -R ${NAGIOS_USER}.${NAGIOS_GROUP} "${NAGIOS_HOME}/etc/htpasswd.users"
fi

shutdown() {
Expand Down

0 comments on commit a7bc813

Please sign in to comment.