aboutsummaryrefslogtreecommitdiff
path: root/scripts/restore
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2020-02-25 21:37:52 +0100
committerGitHub <noreply@github.com>2020-02-25 21:37:52 +0100
commit2b588c79f4c1a28f0ffe25781a68673abe69434c (patch)
tree4863f9656e46cbf77b2dcde17160fe3e477d77c8 /scripts/restore
parentea70a2cd4f17daecf49e2b414c0e95e4385cf1a6 (diff)
parentf00ae6d6b926cf80236d98617b579c176beb8dfe (diff)
downloadmastodon_ynh-2b588c79f4c1a28f0ffe25781a68673abe69434c.tar.gz
mastodon_ynh-2b588c79f4c1a28f0ffe25781a68673abe69434c.tar.bz2
mastodon_ynh-2b588c79f4c1a28f0ffe25781a68673abe69434c.zip
Merge pull request #194 from YunoHost-Apps/example_ynh
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