SHA256
1
0
forked from pool/gromox
gromox/debian.gromox.postinst

13 lines
558 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 2>/dev/null || :
fi