aboutsummaryrefslogtreecommitdiff
path: root/scripts/restore
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2020-02-26 19:32:42 +0100
committerGitHub <noreply@github.com>2020-02-26 19:32:42 +0100
commit53aeae382eda1263d0ebf9a454bd1c3eeca8ddb1 (patch)
tree4863f9656e46cbf77b2dcde17160fe3e477d77c8 /scripts/restore
parentdf1d3b83108d43e898b99e26adbeea32d8961b69 (diff)
parent2b588c79f4c1a28f0ffe25781a68673abe69434c (diff)
downloadmastodon_ynh-53aeae382eda1263d0ebf9a454bd1c3eeca8ddb1.tar.gz
mastodon_ynh-53aeae382eda1263d0ebf9a454bd1c3eeca8ddb1.tar.bz2
mastodon_ynh-53aeae382eda1263d0ebf9a454bd1c3eeca8ddb1.zip
Merge pull request #195 from YunoHost-Apps/testing
Apply example_ynh
Diffstat (limited to 'scripts/restore')
-rw-r--r--scripts/restore6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/restore b/scripts/restore
index 1985b26..c6e4bc8 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -17,6 +17,7 @@ source /usr/share/yunohost/helpers
#=================================================
# MANAGE SCRIPT FAILURE
#=================================================
+ynh_script_progression --message="Managing script failure..." --weight=2
ynh_clean_setup () {
ynh_clean_check_starting
@@ -85,6 +86,7 @@ chown -R $app: $final_path
#=================================================
# ADD SWAP IF NEEDED
#=================================================
+ynh_script_progression --message="Adding swap if needed..." --weight=4
total_memory=$(ynh_check_ram)
total_swap=$(ynh_check_ram --only_swap)
@@ -137,9 +139,9 @@ ynh_restore_file --origin_path="/etc/systemd/system/$app-streaming.service"
systemctl enable "$app-web" "$app-sidekiq" "$app-streaming"
#=================================================
-# ADVERTISE SERVICE IN ADMIN PANEL
+# INTEGRATE SERVICE IN YUNOHOST
#=================================================
-ynh_script_progression --message="Advertising service in admin panel..." --weight=3
+ynh_script_progression --message="Integrating service in YunoHost..." --weight=3
yunohost service add $app-web
yunohost service add $app-sidekiq