Update postinst

This commit is contained in:
myvesta 2021-12-12 21:16:22 +01:00 committed by GitHub
commit 98dcbbc691
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,8 +211,8 @@ if [ $(systemctl list-unit-files | grep clamav-daemon | grep -c "disabled") -eq
fi fi
# Making sure mpm_event will stay # Making sure mpm_event will stay
if [ ! -f "/usr/local/vesta/data/upgrades/keeping-mpm-event-2" ]; then if [ ! -f "/usr/local/vesta/data/upgrades/keeping-mpm-event-3" ]; then
touch /usr/local/vesta/data/upgrades/keeping-mpm-event-2 touch /usr/local/vesta/data/upgrades/keeping-mpm-event-3
echo "=== scheduling keeping-mpm-event check script" echo "=== scheduling keeping-mpm-event check script"
echo "bash /usr/local/vesta/upd/keep_mpm_event.sh 'background' >> /usr/local/vesta/data/upgrades/keeping-mpm-event.log 2>&1" >> /usr/local/vesta/data/queue/restart.pipe echo "bash /usr/local/vesta/upd/keep_mpm_event.sh 'background' >> /usr/local/vesta/data/upgrades/keeping-mpm-event.log 2>&1" >> /usr/local/vesta/data/queue/restart.pipe
/usr/local/vesta/bin/v-add-cron-restart-job > /dev/null 2>&1 /usr/local/vesta/bin/v-add-cron-restart-job > /dev/null 2>&1