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:
parent
692ceacf07
commit
22e483a8a3
1 changed files with 3 additions and 0 deletions
|
@ -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';"\
|
||||||
|
|
Loading…
Reference in a new issue