From 4a4408579d3fdca2f1099fc26116dc43c6fd9867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Sun, 21 Jul 2024 10:55:12 +0200 Subject: [PATCH] restore recreate log dit --- manifest.toml | 2 +- scripts/restore | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index c571f2d..ada831c 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Cors Proxy" description.en = "An advanced https proxy allowing you to call other websites from your own web application." description.fr = "Un proxy https avancé vous permettant d'appeler d'autres sites depuis votre propre application web." -version = "1.2.1~ynh3" +version = "1.2.1~ynh4" maintainers = ["Gerard Collin"] diff --git a/scripts/restore b/scripts/restore index 73e8b4f..3c3cd89 100755 --- a/scripts/restore +++ b/scripts/restore @@ -49,6 +49,8 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file --origin_path="/etc/logrotate.d/$app" +mkdir --parents /var/log/$app + ynh_restore_file --origin_path="/etc/systemd/system/$app.service" systemctl enable $app.service --quiet yunohost service add $app --description="A Cors proxy letting the browser manages cookies and redirects." --log="/var/log/$app/$app.log"