#!/bin/bash

. ${TOOLKIT}-functions.sh

# create access file if not exists with default
# user nagios and password nagios
#
file="/etc/nagios3/htpasswd.users"
def_user="nagios"
def_pass="nagios"

[ -f $file ] || {
	echo "  creating access file with user '$def_user' and password '$def_pass'"
	htpasswd -c -s -b $file $def_user $def_pass || exit $?
}

exit 0
