Update INSTALL.sh

This commit is contained in:
Stefan Pejcic 2024-08-23 15:27:49 +02:00 committed by GitHub
parent a9bd751d0d
commit 368f226fb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}