diff --git a/scripts/backup b/scripts/backup index b348c17..fa327c3 100644 --- a/scripts/backup +++ b/scripts/backup @@ -83,6 +83,9 @@ ynh_backup --src_path="/etc/systemd/system/$app.service" ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Rocket has launched from" +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + sleep 60 +fi #================================================= # END OF SCRIPT diff --git a/scripts/change_url b/scripts/change_url index a17aae3..2ade288 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -97,6 +97,9 @@ fi ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Rocket has launched from" +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + sleep 60 +fi #================================================= # RELOAD NGINX diff --git a/scripts/install b/scripts/install index c643ae5..df72d69 100644 --- a/scripts/install +++ b/scripts/install @@ -198,6 +198,9 @@ ynh_script_progression --message="Starting a systemd service..." --weight=2 # Start a systemd service ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Rocket has launched from" +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + sleep 60 +fi #================================================= # SETUP FAIL2BAN diff --git a/scripts/restore b/scripts/restore index 6e10c7e..86c3993 100644 --- a/scripts/restore +++ b/scripts/restore @@ -117,6 +117,9 @@ yunohost service add $app --description "$app daemon for Bitwarden" --log "/var/ ynh_script_progression --message="Starting a systemd service..." --weight=2 ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Rocket has launched from" +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + sleep 60 +fi #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index b79c224..e9b6aed 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -223,6 +223,9 @@ fi ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Rocket has launched from" +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + sleep 60 +fi #================================================= # RELOAD NGINX