1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glitchsoc_ynh.git synced 2024-09-03 19:15:59 +02:00

Add create DB

This commit is contained in:
nemsia 2017-04-11 13:39:37 +02:00 committed by GitHub
parent 692ceacf07
commit 22e483a8a3

View file

@ -68,6 +68,9 @@ sudo npm install -g yarn
# Create DB user mastodon # Create DB user mastodon
ynh_psql_create_user_without_password "$app" ynh_psql_create_user_without_password "$app"
# Create DB user mastodon
ynh_psql_create_db_without_password "$app"
# Set UTF8 encoding by default # Set UTF8 encoding by default
sudo su -c "psql" postgres <<< \ sudo su -c "psql" postgres <<< \
"update pg_database set datistemplate='false' where datname='template1';"\ "update pg_database set datistemplate='false' where datname='template1';"\