aboutsummaryrefslogtreecommitdiff
path: root/scripts/restore
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2021-04-10 20:28:06 +0200
committeryalh76 <yalh@yahoo.com>2021-04-10 20:28:06 +0200
commitf19e49ae9861a93b22640f11437b749a006be2cd (patch)
treed7a803a006d8caaedb381bc00f44bad8803aedef /scripts/restore
parentd5c6970fafd35955d1f6ea695d8e195c64419620 (diff)
downloadmastodon_ynh-f19e49ae9861a93b22640f11437b749a006be2cd.tar.gz
mastodon_ynh-f19e49ae9861a93b22640f11437b749a006be2cd.tar.bz2
mastodon_ynh-f19e49ae9861a93b22640f11437b749a006be2cd.zip
Apply example_ynh
Diffstat (limited to 'scripts/restore')
-rw-r--r--scripts/restore14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/restore b/scripts/restore
index 3e50248..0b389f0 100644
--- a/scripts/restore
+++ b/scripts/restore
@@ -93,6 +93,13 @@ ynh_script_progression --message="Adding $swap_needed Mo to swap..."
ynh_add_swap --size=$swap_needed
#=================================================
+# RESTORE THE CRON FILE
+#=================================================
+ynh_script_progression --message="Restoring the cron file..."
+
+ynh_restore_file --origin_path="/etc/cron.d/$app"
+
+#=================================================
# REINSTALL DEPENDENCIES
#=================================================
ynh_script_progression --message="Reinstalling dependencies..."
@@ -152,13 +159,6 @@ ynh_systemd_action --service_name=${app}-sidekiq --action="start" --log_path=sys
ynh_systemd_action --service_name=${app}-streaming --action="start" --log_path=systemd --line_match="Worker 1 now listening"
#=================================================
-# RESTORE THE CRON FILE
-#=================================================
-ynh_script_progression --message="Restoring the cron file..."
-
-ynh_restore_file --origin_path="/etc/cron.d/$app"
-
-#=================================================
# GENERIC FINALIZATION
#=================================================
# RELOAD NGINX