1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/homeassistant_ynh.git synced 2024-09-03 19:26:16 +02:00
This commit is contained in:
ewilly 2021-11-20 16:31:46 +01:00
parent 407559b6d7
commit be774783ff

View file

@ -70,7 +70,6 @@ ynh_replace_string --match_string=" --verbose" --replace_string="" --target_file
ynh_store_file_checksum --file="/etc/systemd/system/$app@$app.service" ynh_store_file_checksum --file="/etc/systemd/system/$app@$app.service"
systemctl daemon-reload systemctl daemon-reload
ynh_systemd_action --service_name="$app@$app" --action=restart ynh_systemd_action --service_name="$app@$app" --action=restart
sleep 60s
# restore logrotate # restore logrotate
ynh_script_progression --message="Restoring logrotate..." ynh_script_progression --message="Restoring logrotate..."
@ -81,4 +80,8 @@ ynh_script_progression --message="Restoring nginx web server..."
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_systemd_action --service_name=nginx --action=reload ynh_systemd_action --service_name=nginx --action=reload
# access url (first try always failed to Nginx page)
ynh_script_progression --message="Opening $app local page..."
ynh_exec_fully_quiet ynh_local_curl
ynh_script_progression --message="Recovery of $app completed" --last ynh_script_progression --message="Recovery of $app completed" --last