diff options
| author | yalh76 <yalh@yahoo.com> | 2021-02-26 20:57:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-26 20:57:41 +0100 |
| commit | 27eafa9fd59c56ab915f03d080980bd1ab156590 (patch) | |
| tree | 4c6c68a73659155f6998b5120476b257cc057f4f /scripts/restore | |
| parent | a233ccc644d97aa89756fac9f0ce68c98d81d27c (diff) | |
| parent | d3172db5407767d08b94030a53b8d7c360499952 (diff) | |
| download | mastodon_ynh-27eafa9fd59c56ab915f03d080980bd1ab156590.tar.gz mastodon_ynh-27eafa9fd59c56ab915f03d080980bd1ab156590.tar.bz2 mastodon_ynh-27eafa9fd59c56ab915f03d080980bd1ab156590.zip | |
Merge pull request #258 from YunoHost-Apps/testing
Upgrade to 3.3.0~ynh1
Diffstat (limited to 'scripts/restore')
| -rw-r--r-- | scripts/restore | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/scripts/restore b/scripts/restore index 84610eb..e51126f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -15,7 +15,6 @@ source /usr/share/yunohost/helpers #================================================= # MANAGE SCRIPT FAILURE #================================================= -ynh_script_progression --message="Managing script failure..." ynh_clean_setup () { ynh_clean_check_starting @@ -135,16 +134,16 @@ ynh_script_progression --message="Restoring the systemd configuration..." ynh_restore_file --origin_path="/etc/systemd/system/$app-web.service" ynh_restore_file --origin_path="/etc/systemd/system/$app-sidekiq.service" ynh_restore_file --origin_path="/etc/systemd/system/$app-streaming.service" -systemctl enable "$app-web" "$app-sidekiq" "$app-streaming" +systemctl enable "$app-web" "$app-sidekiq" "$app-streaming" --quiet #================================================= # INTEGRATE SERVICE IN YUNOHOST #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -yunohost service add "$app-web" --description "$app web service" --log_type "systemd" -yunohost service add "$app-sidekiq" --description "$app sidekiq service" --log_type "systemd" -yunohost service add "$app-streaming" --description "$app streaming service" --log_type "systemd" +yunohost service add "$app-web" --description "$app web service" +yunohost service add "$app-sidekiq" --description "$app sidekiq service" +yunohost service add "$app-streaming" --description "$app streaming service" #================================================= # START SYSTEMD SERVICE @@ -167,7 +166,7 @@ ynh_restore_file --origin_path="/etc/cron.d/$app" #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." +ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload |
