]> granicus.if.org Git - icinga2/commitdiff
Fix using full path in prepare-dirs/safe-reload scripts 6588/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Mon, 3 Sep 2018 14:47:38 +0000 (16:47 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Mon, 3 Sep 2018 14:47:38 +0000 (16:47 +0200)
This won't be visible with packages and overridden paths,
just source builds which invoke the scripts manually.

refs #6506

etc/initsystem/prepare-dirs.cmake
etc/initsystem/safe-reload.cmake

index c0d96bdac7353df65965930bc26f6fd9562380f8..99dc602234963c2ca758da197607a95cd4b0e998 100644 (file)
@@ -17,9 +17,9 @@ fi
 : ${ICINGA2_USER:="@ICINGA2_USER@"}
 : ${ICINGA2_GROUP:="@ICINGA2_GROUP@"}
 : ${ICINGA2_COMMAND_GROUP:="@ICINGA2_COMMAND_GROUP@"}
-: ${ICINGA2_INIT_RUN_DIR:="@ICINGA2_INITRUNDIR@"}
-: ${ICINGA2_LOG_DIR:="@ICINGA2_LOGDIR@"}
-: ${ICINGA2_CACHE_DIR:="@ICINGA2_CACHEDIR@"}
+: ${ICINGA2_INIT_RUN_DIR:="@ICINGA2_FULL_INITRUNDIR@"}
+: ${ICINGA2_LOG_DIR:="@ICINGA2_FULL_LOGDIR@"}
+: ${ICINGA2_CACHE_DIR:="@ICINGA2_FULL_CACHEDIR@"}
 
 getent passwd $ICINGA2_USER >/dev/null 2>&1 || (echo "Icinga user '$ICINGA2_USER' does not exist. Exiting." && exit 6)
 getent group $ICINGA2_GROUP >/dev/null 2>&1 || (echo "Icinga group '$ICINGA2_GROUP' does not exist. Exiting." && exit 6)
index a71ae9db5091e2381b9f0cf4ebfd8f8747c3cbb5..a042fc66f38075ee497aab5945cb0892d20da954 100644 (file)
@@ -11,7 +11,7 @@ fi
 
 # Set defaults, to overwrite see "@ICINGA2_SYSCONFIGFILE@"
 
-: ${ICINGA2_PID_FILE:="@ICINGA2_INITRUNDIR@/icinga2.pid"}
+: ${ICINGA2_PID_FILE:="@ICINGA2_FULL_INITRUNDIR@/icinga2.pid"}
 : ${DAEMON:="@CMAKE_INSTALL_FULL_SBINDIR@/icinga2"}
 
 printf "Validating config files: "