- Update to 2.3.10

- Re-enable start_precmd in the rc script, creating needed directories in /var
This commit is contained in:
Lars Engels 2015-09-11 04:59:14 +00:00
parent ea85f829b8
commit b68e14dc20
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396647
3 changed files with 23 additions and 19 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= icinga2
DISTVERSIONPREFIX= v
DISTVERSION= 2.3.9
DISTVERSION= 2.3.10
CATEGORIES= net-mgmt
MAINTAINER= lme@FreeBSD.org

View File

@ -1,2 +1,2 @@
SHA256 (icinga-icinga2-v2.3.9_GH0.tar.gz) = af6aa49ac9ce90e2ecf331b092624f5d6462d31ca5b4458db1c3d974391183c3
SIZE (icinga-icinga2-v2.3.9_GH0.tar.gz) = 829706
SHA256 (icinga-icinga2-v2.3.10_GH0.tar.gz) = d29880b1adfd21d650a72e04a36e4dadb899b8452c4917e25e7ec3c5e65582c1
SIZE (icinga-icinga2-v2.3.10_GH0.tar.gz) = 830680

View File

@ -78,22 +78,26 @@ reload_precmd() {
}
start_precmd() {
# # Create necessary directories / change ownership
# for d in "${icinga2_logdir}" "${icinga2_logdir}/compat" \
# "${icinga2_logdir}/compat/archives" "${icinga2_libdir}" \
# "${icinga2_spooldir}" "${icinga2_spooldir}/tmp" \
# "${icinga2_rundir}" "${icinga2_cachedir}"; do
# if [ ! -d "${d}" ]; then
# install -d -o ${icinga2_user} -g ${icinga2_group} "${d}"
# else
# chown ${icinga2_user}:${icinga2_group} "${d}"
# fi
# done
#
# install -d -o ${icinga2_user} -g %%WWWGRP%% "${icinga2_rundir}/cmd"
#
# chown -R ${icinga2_user}:${icinga2_user} "${icinga2_libdir}"
# chown -R ${icinga2_user}:${icinga2_user} "${icinga2_spooldir}"
# Create necessary directories / change ownership
#
# While this is also done through pkg-plist, /var might be on a ramdisk,
# so make sure all needed files and directories are created before starting
# Icinga.
for d in "${icinga2_logdir}" "${icinga2_logdir}/compat" \
"${icinga2_logdir}/compat/archives" "${icinga2_libdir}" \
"${icinga2_spooldir}" "${icinga2_spooldir}/tmp" \
"${icinga2_rundir}" "${icinga2_cachedir}"; do
if [ ! -d "${d}" ]; then
install -d -o ${icinga2_user} -g ${icinga2_group} "${d}"
else
chown ${icinga2_user}:${icinga2_group} "${d}"
fi
done
install -d -o ${icinga2_user} -g %%WWWGRP%% "${icinga2_rundir}/cmd"
chown -R ${icinga2_user}:${icinga2_user} "${icinga2_libdir}"
chown -R ${icinga2_user}:${icinga2_user} "${icinga2_spooldir}"
if ! icinga2_checkconfig; then
return 1