aboutsummaryrefslogtreecommitdiff
path: root/scripts/restore
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2022-01-07 19:41:59 +0100
committerGitHub <noreply@github.com>2022-01-07 19:41:59 +0100
commitfa8a9d4eed460fa73926e7874313091dffb7b9fc (patch)
tree155293eb2bf6b881ab4bae9490440bd2125cdfec /scripts/restore
parentadec07db890dec787416e1b7c4493d24391d3500 (diff)
parent1476f17251ea0b339390cfa5210e258342ea5a4a (diff)
downloadmastodon_ynh-fa8a9d4eed460fa73926e7874313091dffb7b9fc.tar.gz
mastodon_ynh-fa8a9d4eed460fa73926e7874313091dffb7b9fc.tar.bz2
mastodon_ynh-fa8a9d4eed460fa73926e7874313091dffb7b9fc.zip
Merge pull request #290 from YunoHost-Apps/testing
Upgrade to 3.4.4
Diffstat (limited to 'scripts/restore')
-rw-r--r--scripts/restore9
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/restore b/scripts/restore
index 7a3808b..aacb7f0 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -41,10 +41,7 @@ db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd)
#=================================================
ynh_script_progression --message="Validating restoration parameters..."
-ynh_webpath_available --domain=$domain --path_url=$path_url \
- || ynh_die --message="Path not available: ${domain}${path_url}"
-test ! -d $final_path \
- || ynh_die --message="There is already a directory: $final_path "
+test ! -d $final_path || ynh_die --message="There is already a directory: $final_path "
#=================================================
# STANDARD RESTORATION STEPS
@@ -104,8 +101,8 @@ ynh_restore_file --origin_path="/etc/cron.d/$app"
#=================================================
ynh_script_progression --message="Reinstalling dependencies..."
-ynh_install_app_dependencies $pkg_dependencies
-ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
+ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
+ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
ynh_install_ruby --ruby_version=$RUBY_VERSION