2023-01-13 00:31:00 +01:00
|
|
|
#!/bin/sh
|
|
|
|
chmod 0750 /var/log/grommunio
|
|
|
|
mkdir -p /var/lib/grommunio-web/tmp /var/lib/grommunio-web/sqlite-index
|
2023-04-21 10:48:30 +02:00
|
|
|
chown -h groweb:groweb /var/lib/grommunio-web
|
|
|
|
chmod 0770 /var/lib/grommunio-web /var/lib/grommunio-web/tmp \
|
|
|
|
/var/lib/grommunio-web/sqlite-index /var/lib/grommunio-web/sqlite-session
|
2023-01-13 00:31:00 +01:00
|
|
|
# clear translation caches
|
2023-04-21 10:48:30 +02:00
|
|
|
runuser -u groweb -- ipcrm -M 0x950412DE 2>/dev/null || :
|
|
|
|
# reload nginx and restart fpm as this package ships config snippets
|
|
|
|
# reloading is not sufficient especially for php-fpm as it does not
|
|
|
|
# create the socket with the appropriate permissions
|
|
|
|
systemctl list-units --plain --no-legend --quiet "php*fpm.service" | \
|
|
|
|
awk '{print$1}' | xargs /usr/bin/systemctl try-restart
|
|
|
|
/usr/bin/systemctl reload nginx.service
|