forked from pool/grommunio-web
Jan Engelhardt
fbd331f570
OBS-URL: https://build.opensuse.org/package/show/server:mail/grommunio-web?expand=0&rev=14
14 lines
700 B
Bash
14 lines
700 B
Bash
#!/bin/sh
|
|
mkdir -p /var/lib/grommunio-web/tmp /var/lib/grommunio-web/sqlite-index
|
|
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/session
|
|
# clear translation caches
|
|
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
|