1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/vaultwarden_ynh.git synced 2024-09-03 18:26:31 +02:00

Adding time for package_check

This commit is contained in:
yalh76 2020-01-14 22:47:01 +01:00
parent bbeef64326
commit 32b08c9b53
5 changed files with 20 additions and 0 deletions

View file

@ -84,6 +84,10 @@ ynh_backup --src_path="/etc/systemd/system/$app.service"
ynh_print_info --message="Starting a systemd service..."
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Rocket has launched from" --length=100
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
sleep 60
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100
fi
#=================================================
# END OF SCRIPT

View file

@ -119,6 +119,10 @@ fi
ynh_print_info --message="Starting a systemd service..."
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Rocket has launched from" --length=100
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
sleep 60
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100
fi
#=================================================
# RELOAD NGINX

View file

@ -205,6 +205,10 @@ ynh_print_info --message="Starting a systemd service..."
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Rocket has launched from" --length=100
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
sleep 60
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100
fi
#=================================================
# SETUP FAIL2BAN

View file

@ -122,6 +122,10 @@ ynh_print_info --message="Starting a systemd service..."
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Rocket has launched from" --length=100
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
sleep 60
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100
fi
#=================================================
# RESTORE THE LOGROTATE CONFIGURATION

View file

@ -227,6 +227,10 @@ fi
ynh_print_info --message="Starting a systemd service..."
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Rocket has launched from" --length=100
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
sleep 60
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100
fi
#=================================================
# RELOAD NGINX