1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/peertube_ynh.git synced 2024-09-03 19:56:29 +02:00

Added UTF8 encoding for database in restore

This commit is contained in:
anmol26s 2018-06-01 22:30:13 +05:30
parent 6c0bc10576
commit 82fb6e2721

View file

@ -112,7 +112,9 @@ ynh_install_app_dependencies postgresql ffmpeg redis-server redis-tools mailutil
#=================================================
ynh_psql_test_if_first_run
ynh_psql_setup_db "$app" "$db_name" "$db_pwd"
ynh_psql_create_user "$app" "$db_pwd"
ynh_psql_execute_as_root \
"CREATE DATABASE $db_name ENCODING 'UTF8' LC_COLLATE='C' LC_CTYPE='C' template=template0 OWNER $app;"
ynh_psql_execute_file_as_root ./db.sql "$db_name"
#=================================================