gromox/debian.gromox.postinst

13 lines
576 B
Bash

#!/bin/sh
# %files
chown gromox:gromox /var/lib/gromox /var/log/gromox || :
chmod 0770 /var/lib/gromox /var/log/gromox || :
# %post
if test -x /usr/bin/systemctl; then
systemd-tmpfiles --create tmpfiles-gromox.conf || :
systemctl daemon-reload || :
systemctl try-restart gromox-adaptor.service gromox-delivery.service gromox-delivery-queue.service gromox-event.service gromox-http.service gromox-imap.service gromox-midb.service gromox-pop3.service gromox-timer.service gromox-zcore.service grommunio-chat.service php7.4-fpm.service saslauthd.service 2>/dev/null || :
fi