diff options
| author | yalh76 <yalh@yahoo.com> | 2021-03-22 20:54:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-22 20:54:42 +0100 |
| commit | 0337521cde48b451846f680add7dc0ed18d5545a (patch) | |
| tree | 72379ec6dcb02d543ed3185081a555acd98326ea /scripts/restore | |
| parent | 1d258ddb722f29159e506c1c4fd8a8bc052afe89 (diff) | |
| parent | b01227d32602fe2239f1c74fa8ac06940230c52e (diff) | |
| download | mastodon_ynh-0337521cde48b451846f680add7dc0ed18d5545a.tar.gz mastodon_ynh-0337521cde48b451846f680add7dc0ed18d5545a.tar.bz2 mastodon_ynh-0337521cde48b451846f680add7dc0ed18d5545a.zip | |
Merge pull request #261 from YunoHost-Apps/ynh_ruby__3
Ynh ruby 3
Diffstat (limited to 'scripts/restore')
| -rw-r--r-- | scripts/restore | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/restore b/scripts/restore index 6744ddb..a8cfd30 100644 --- a/scripts/restore +++ b/scripts/restore @@ -101,19 +101,20 @@ ynh_add_swap --size=$swap_needed #================================================= ynh_script_progression --message="Reinstalling dependencies..." +ynh_install_app_dependencies $pkg_dependencies ynh_install_nodejs --nodejs_version=$NODEJS_VERSION -ynh_install_app_dependencies $pkg_dependencies 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 #================================================= # INSTALLING RUBY AND BUNDLER #================================================= ynh_script_progression --message="Installing Ruby..." -ynh_install_ruby --ruby_version=$RUBY_VERSION pushd "$final_path/live" - gem update --system - gem install bundler:$BUNDLER_VERSION --no-document + ynh_use_ruby + ynh_gem update --system + ynh_gem install bundler --no-document popd #================================================= @@ -150,7 +151,7 @@ yunohost service add "$app-streaming" --description "$app streaming service" #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_systemd_action --service_name=${app}-web --action="start" --log_path=systemd --line_match="Listening on tcp" +ynh_systemd_action --service_name=${app}-web --action="start" --log_path=systemd --line_match="Listening on" ynh_systemd_action --service_name=${app}-sidekiq --action="start" --log_path=systemd --line_match="Schedules Loaded" ynh_systemd_action --service_name=${app}-streaming --action="start" --log_path=systemd --line_match="Worker 1 now listening" |
