1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dendrite_ynh.git synced 2024-09-03 18:25:58 +02:00

Update install: fix database encoding

This commit is contained in:
tituspijean 2023-08-26 22:06:40 +02:00 committed by GitHub
parent 7c4da42dc4
commit 351c1e7b60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ usermod -a -G ssl-cert $app
ynh_script_progression --message="Creating a PostgreSQL database..." --weight=2
ynh_psql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name \
<<< "ALTER DATABASE $db_name ENCODING 'UTF8' LC_COLLATE='C' LC_CTYPE='C' template=template0;"
<<< "ALTER DATABASE $db_name CHARACTER SET='utf8mb3' COLLATE='utf8mb3_unicode_ci' LC_COLLATE='C' LC_CTYPE='C' template=template0;"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE