mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-14 17:24:35 +02:00
parent
31d76935f9
commit
9f44fadb65
@ -47,7 +47,7 @@ fi
|
|||||||
|
|
||||||
mkdir -p $ICINGA2_RUN_DIR/icinga2/cmd
|
mkdir -p $ICINGA2_RUN_DIR/icinga2/cmd
|
||||||
chown $ICINGA2_USER:$ICINGA2_COMMAND_GROUP $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/
|
restorecon -R $ICINGA2_RUN_DIR/icinga2/
|
||||||
fi
|
fi
|
||||||
chmod 2750 $ICINGA2_RUN_DIR/icinga2/cmd
|
chmod 2750 $ICINGA2_RUN_DIR/icinga2/cmd
|
||||||
|
@ -12,7 +12,7 @@ printf "Validating config files: "
|
|||||||
|
|
||||||
OUTPUTFILE=`mktemp`
|
OUTPUTFILE=`mktemp`
|
||||||
|
|
||||||
if type chcon >/dev/null 2&>1; then
|
if type chcon >/dev/null 2>&1; then
|
||||||
chcon -t icinga2_tmp_t $OUTPUTFILE
|
chcon -t icinga2_tmp_t $OUTPUTFILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user