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:
parent
6c0bc10576
commit
82fb6e2721
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@ ynh_install_app_dependencies postgresql ffmpeg redis-server redis-tools mailutil
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_psql_test_if_first_run
|
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"
|
ynh_psql_execute_file_as_root ./db.sql "$db_name"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue