2021-10-08 21:37:53 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# %files
|
2022-04-06 18:05:20 +02:00
|
|
|
chown root:gromox /etc/gromox || :
|
|
|
|
chmod 0770 /etc/gromox || :
|
|
|
|
vd="/var/lib/gromox \
|
|
|
|
/var/lib/gromox/domain \
|
|
|
|
/var/lib/gromox/queue \
|
|
|
|
/var/lib/gromox/queue/cache \
|
|
|
|
/var/lib/gromox/queue/clone \
|
|
|
|
/var/lib/gromox/queue/insulation \
|
|
|
|
/var/lib/gromox/queue/mess \
|
|
|
|
/var/lib/gromox/queue/save \
|
|
|
|
/var/lib/gromox/queue/timer \
|
|
|
|
/var/lib/gromox/user \
|
|
|
|
/var/log/gromox"
|
|
|
|
chown gromox:gromox $vd || :
|
|
|
|
chmod 0770 $vd || :
|
2021-10-08 21:37:53 +02:00
|
|
|
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 || :
|
2021-11-13 15:03:51 +01:00
|
|
|
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 || :
|
2021-10-08 21:37:53 +02:00
|
|
|
fi
|