aboutsummaryrefslogtreecommitdiff
path: root/scripts/restore
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-10-08 01:22:50 +0200
committeryalh76 <yalh@yahoo.com>2019-10-08 01:22:50 +0200
commit3a9bc3df2eda8d84ec38bc5afecc9c11839834f2 (patch)
tree88fa8df1a5610fcd11e9f565836668c541225566 /scripts/restore
parent45573a61cdb375205cc51a68e2b89595bf5d3f6a (diff)
downloadmastodon_ynh-3a9bc3df2eda8d84ec38bc5afecc9c11839834f2.tar.gz
mastodon_ynh-3a9bc3df2eda8d84ec38bc5afecc9c11839834f2.tar.bz2
mastodon_ynh-3a9bc3df2eda8d84ec38bc5afecc9c11839834f2.zip
Fix db_setup
Diffstat (limited to 'scripts/restore')
-rw-r--r--scripts/restore1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/restore b/scripts/restore
index 689f5c2..5982c94 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -122,6 +122,7 @@ ynh_script_progression --message="Restoring the PostgreSQL database..." --weight
ynh_psql_test_if_first_run
ynh_psql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd
+ynh_psql_execute_as_root --sql="ALTER USER $db_user CREATEDB;"
ynh_psql_execute_file_as_root --file="./db.sql" --database="$db_name"
#=================================================