1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Fix linter warning

This commit is contained in:
Josué Tille 2024-02-23 18:22:07 +01:00
parent 131d6d4cff
commit eea366884d
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -306,7 +306,7 @@ fi
#=================================================
if ynh_psql_execute_as_root --sql='\list' | grep matrix_$app; then
ynh_psql_remove_db --db_user="user_wich_must_dont_exist_and_keep_current_user" --db_name=$db_name
ynh_''psql_remove_db --db_user="user_wich_must_dont_exist_and_keep_current_user" --db_name=$db_name
ynh_psql_execute_as_root --sql="ALTER DATABASE matrix_$app RENAME TO $db_name;"
ynh_psql_execute_as_root --database=$db_name --sql="REASSIGN OWNED BY matrix_$app TO $db_user;"
ynh_psql_execute_as_root --sql="UPDATE pg_database SET datcollate='C', datctype='C' WHERE datname='$db_name';"
@ -345,9 +345,9 @@ if grep -q "^matrix-$app" /etc/passwd; then
# Must stop php before remove user as user is used by php
systemctl stop php$YNH_PHP_VERSION-fpm.service
ynh_system_user_delete --username=matrix-$app
ynh_''system_user_delete --username=matrix-$app
yunohost user delete $app || true
ynh_system_user_create --username=$app --home_dir=$code_dir
ynh_''system_user_create --username=$app --home_dir=$code_dir
adduser $app ssl-cert
fi