From: Gunnar Beutner Date: Wed, 18 Nov 2015 19:18:04 +0000 (+0100) Subject: Fix typo in prepare-dirs / safe-reload X-Git-Tag: v2.5.0~723 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f44fadb6509620cfa129b8375461c4a029c2a66;p=icinga2 Fix typo in prepare-dirs / safe-reload fixes #10663 --- diff --git a/etc/initsystem/prepare-dirs b/etc/initsystem/prepare-dirs index 64757c2a6..6c4a08869 100644 --- a/etc/initsystem/prepare-dirs +++ b/etc/initsystem/prepare-dirs @@ -47,7 +47,7 @@ fi mkdir -p $ICINGA2_RUN_DIR/icinga2/cmd chown $ICINGA2_USER:$ICINGA2_COMMAND_GROUP $ICINGA2_RUN_DIR/icinga2/cmd -if type restorecon >/dev/null 2&>1; then +if type restorecon >/dev/null 2>&1; then restorecon -R $ICINGA2_RUN_DIR/icinga2/ fi chmod 2750 $ICINGA2_RUN_DIR/icinga2/cmd diff --git a/etc/initsystem/safe-reload b/etc/initsystem/safe-reload index c22069cce..faac2dbc7 100644 --- a/etc/initsystem/safe-reload +++ b/etc/initsystem/safe-reload @@ -12,7 +12,7 @@ printf "Validating config files: " OUTPUTFILE=`mktemp` -if type chcon >/dev/null 2&>1; then +if type chcon >/dev/null 2>&1; then chcon -t icinga2_tmp_t $OUTPUTFILE fi