diff options
| author | Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> | 2022-01-06 15:53:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-06 15:53:14 +0100 |
| commit | 79914a6f08ad0b16774785f3d491f9567bc1de2d (patch) | |
| tree | 3ccb0febe099bd46d73e4a4bbd032327c9f33cd3 /scripts/restore | |
| parent | df3848850ebfb1fabc58858e2559a841b40ac9e4 (diff) | |
| parent | dac17de1453a284095fa5a5e2412b553f28a83af (diff) | |
| download | mastodon_ynh-79914a6f08ad0b16774785f3d491f9567bc1de2d.tar.gz mastodon_ynh-79914a6f08ad0b16774785f3d491f9567bc1de2d.tar.bz2 mastodon_ynh-79914a6f08ad0b16774785f3d491f9567bc1de2d.zip | |
Merge pull request #289 from Tagadda/fix-install
Upgrade to 3.4.4
Diffstat (limited to 'scripts/restore')
| -rw-r--r-- | scripts/restore | 9 |
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 |
