diff --git a/scripts/install b/scripts/install index 2107a4c..668f376 100644 --- a/scripts/install +++ b/scripts/install @@ -330,9 +330,10 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=2 ynh_script_progression --message="Configuring application..." ynh_add_fpm_config --usage=low --footprint=low -sed -i "s|user\s*=\s*$app|user = matrix-$app|g" /etc/php/7.*/fpm/pool.d/synapse.conf -sed -i "s|group\s*=\s*$app|group = matrix-$app|g" /etc/php/7.*/fpm/pool.d/synapse.conf -sed -i "s|chdir\s*=\s*/opt/yunohost/matrix-synapse.*|chdir = $final_www_path|g" /etc/php/7.*/fpm/pool.d/synapse.conf +sed -i "s|user\s*=\s*$app|user = matrix-$app|g" /etc/php/7.*/fpm/pool.d/$app.conf +sed -i "s|group\s*=\s*$app|group = matrix-$app|g" /etc/php/7.*/fpm/pool.d/$app.conf +sed -i "s|chdir\s*=\s*/opt/yunohost/matrix-synapse.*|chdir = $final_www_path|g" /etc/php/7.*/fpm/pool.d/$app.conf +ynh_store_file_checksum --file=/etc/php/7.*/fpm/pool.d/$app.conf # Create .well-known redirection for access by federation if yunohost --output-as plain domain list | grep -q "^$server_name$" diff --git a/scripts/upgrade b/scripts/upgrade index 63c0aa9..5df26b2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -520,9 +520,10 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." - ynh_script_progression --message="Configuring application..." ynh_add_fpm_config --usage=low --footprint=low -sed -i "s|user\s*=\s*$app|user = matrix-$app|g" /etc/php/7.*/fpm/pool.d/synapse.conf -sed -i "s|group\s*=\s*$app|group = matrix-$app|g" /etc/php/7.*/fpm/pool.d/synapse.conf -sed -i "s|chdir\s*=\s*/opt/yunohost/matrix-synapse.*|chdir = $final_www_path|g" /etc/php/7.*/fpm/pool.d/synapse.conf +sed -i "s|user\s*=\s*$app|user = matrix-$app|g" /etc/php/7.*/fpm/pool.d/$app.conf +sed -i "s|group\s*=\s*$app|group = matrix-$app|g" /etc/php/7.*/fpm/pool.d/$app.conf +sed -i "s|chdir\s*=\s*/opt/yunohost/matrix-synapse.*|chdir = $final_www_path|g" /etc/php/7.*/fpm/pool.d/$app.conf +ynh_store_file_checksum --file=/etc/php/7.*/fpm/pool.d/$app.conf # Create .well-known redirection for access by federation if yunohost --output-as plain domain list | grep -q "^$server_name$"