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"