aboutsummaryrefslogtreecommitdiff
path: root/scripts/restore
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-10-11 20:21:48 +0200
committerGitHub <noreply@github.com>2019-10-11 20:21:48 +0200
commit6702cf0834c45603cdf6a4be97fa108c56f8bf22 (patch)
tree10c5ada378aad9aa82406a4287dd07ec9f8dccfe /scripts/restore
parentb9086682d2d7762d2882fff2cda4f5dceb73e32b (diff)
parent2183ce61cf4f6888aa5738bda6987f66e62be173 (diff)
downloadmastodon_ynh-6702cf0834c45603cdf6a4be97fa108c56f8bf22.tar.gz
mastodon_ynh-6702cf0834c45603cdf6a4be97fa108c56f8bf22.tar.bz2
mastodon_ynh-6702cf0834c45603cdf6a4be97fa108c56f8bf22.zip
Merge pull request #180 from YunoHost-Apps/testing
Upgrade to 3.0.1
Diffstat (limited to 'scripts/restore')
-rw-r--r--scripts/restore7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/restore b/scripts/restore
index 1d8180d..5982c94 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -8,7 +8,7 @@
#Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
source ../settings/scripts/_common.sh
-source ../settings/scripts/ynh_install_ruby
+source ../settings/scripts/ynh_install_ruby__2
source ../settings/scripts/ynh_add_extra_apt_repos__3
source ../settings/scripts/ynh_add_swap
source ../settings/scripts/ynh_check_ram
@@ -112,8 +112,8 @@ ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ st
#=================================================
ynh_script_progression --message="Installing Ruby..." --weight=393
-ynh_install_ruby --ruby_version=2.6.1
-/opt/rbenv/versions/2.6.1/bin/gem update --system
+ynh_install_ruby --ruby_version=2.6.5
+/opt/rbenv/versions/2.6.5/bin/gem update --system
#=================================================
# RESTORE THE POSTGRESQL DATABASE
@@ -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"
#=================================================