1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-06 15:36:40 +00:00

Configure Z-Push php_admin_value by env

This commit is contained in:
zokradonh 2021-11-03 11:52:08 +01:00
parent b638f48011
commit 6ece7881dc

View File

@ -132,6 +132,12 @@ if [ "${AUTOCONFIGURE}" == true ]; then
done
echo -e ' );' >> /tmp/z-push/z-push.conf.php
# configuring z-push php_admin_values
for setting in $(compgen -A variable KCCONF_ZPUSHPHPADMINVALUE_); do
setting2=${setting#KCCONF_ZPUSHPHPADMINVALUE_}
perl -i -0pe 's/^\s*php_admin_value\['${setting2,,}'\]\s*=\s*\K.*$/'${!setting}'/mg' /etc/php/7.3/fpm/pool.d/kopano-z-push.conf
done
echo "Ensure config ownership"
chown -R www-data:www-data /run/sessions