diff --git a/scripts/backup b/scripts/backup index eca0b42..fa327c3 100644 --- a/scripts/backup +++ b/scripts/backup @@ -83,7 +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" -sleep 60 +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 e91dd79..2ade288 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -97,7 +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" -sleep 60 +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + sleep 60 +fi #================================================= # RELOAD NGINX diff --git a/scripts/install b/scripts/install index 1570803..df72d69 100644 --- a/scripts/install +++ b/scripts/install @@ -198,7 +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" -sleep 60 +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + sleep 60 +fi #================================================= # SETUP FAIL2BAN diff --git a/scripts/restore b/scripts/restore index 364319d..86c3993 100644 --- a/scripts/restore +++ b/scripts/restore @@ -117,7 +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" -sleep 60 +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + sleep 60 +fi #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 80f499b..e9b6aed 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -223,7 +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" -sleep 60 +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + sleep 60 +fi #================================================= # RELOAD NGINX