From 368f226fb4040136400e13613aa5282d4b6d135f Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Fri, 23 Aug 2024 15:27:49 +0200 Subject: [PATCH] Update INSTALL.sh --- INSTALL.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/INSTALL.sh b/INSTALL.sh index 9bb4b42b..3d760406 100644 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -1076,6 +1076,18 @@ set_system_cronjob(){ mv ${ETC_DIR}cron /etc/cron.d/openpanel chown root:root /etc/cron.d/openpanel chmod 0600 /etc/cron.d/openpanel + +if [ "$PACKAGE_MANAGER" == "dnf" ] || [ "$PACKAGE_MANAGER" == "yum" ]; then + # extra steps for SELinux + (allow unconfined_t user_cron_spool_t( file ( entrypoint))) + semodule -i mycron.cil + systemctl restart crond.service +fi + + + + + }