]> granicus.if.org Git - icinga2/commitdiff
Fix typo in prepare-dirs / safe-reload
authorGunnar Beutner <gunnar@beutner.name>
Wed, 18 Nov 2015 19:18:04 +0000 (20:18 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Wed, 18 Nov 2015 19:18:04 +0000 (20:18 +0100)
fixes #10663

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

index 64757c2a6403e6876571cf4e7e16e349e6c19181..6c4a088692c514dc9b66522395a6e41f73ae90eb 100644 (file)
@@ -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
index c22069ccef440388b7c936610d2b48ed9ee11642..faac2dbc7a4e33ca76d213f295b87c32295ae3df 100644 (file)
@@ -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