Skip to content
Snippets Groups Projects
Commit 822be86f authored by Thermi's avatar Thermi Committed by Natanael Copa
Browse files

testing/grommunio-sync: fixes

- Fixed directories in config files
- Fixed user homedir
parent da5f12e9
No related branches found
No related tags found
1 merge request!67570diverse fixes for grommunio
# Maintainer: Noel Kuntze <noel.kuntze@contauro.com>
pkgname=grommunio-sync
pkgver=2.0_git20240327
pkgrel=2
pkgrel=3
pkgdesc="Exchange ActiveSync interface for grommunio"
# s390x: blocked by grommunio-gromox
arch="noarch !riscv64 !s390x"
......@@ -51,11 +51,13 @@ package() {
# nginx conf
sed -i "s@/var/log/grommunio/@/var/log/nginx/@" build/grommunio-sync.conf
sed -i "s@/usr/share/grommunio-sync/@/usr/share/webapps/grommunio-sync/@" build/grommunio-sync.conf
install -Dpm644 build/grommunio-sync.conf "$pkgdir"/usr/share/grommunio-common/nginx/locations.d/grommunio-sync.conf
sed -i "s@/php-fpm/@/php-fpm${_php#php}/@" build/grommunio-sync-upstream.conf
install -Dpm644 build/grommunio-sync-upstream.conf "$pkgdir"/usr/share/grommunio-common/nginx/upstreams.d/grommunio-sync.conf
# php-fpm
sed -i "s@/php-fpm/@/php-fpm${_php##php}/@" build/pool-grommunio-sync.conf
sed -i "s@/php-fpm/@/php-fpm${_php#php}/@" build/pool-grommunio-sync.conf
install -Dpm644 build/pool-grommunio-sync.conf "$pkgdir"/etc/$_php/php-fpm.d/pool-grommunio-sync.conf
# logrotate
......
#!/bin/sh
addgroup -S grosync 2>/dev/null
adduser -S -D -H -h /usr/share/grommunio-sync -s /sbin/nologin -G grosync -g "Grommunio ActiveSync" grosync 2>/dev/null
adduser -S -D -H -h /usr/share/webapps/grommunio-sync -s /sbin/nologin -G grosync -g "Grommunio ActiveSync" grosync 2>/dev/null
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment