1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cac-proxy_ynh.git synced 2024-09-03 18:16:07 +02:00

restore recreate log dit

This commit is contained in:
Gérard Collin 2024-07-21 10:55:12 +02:00
parent 53b53730dd
commit 4a4408579d
2 changed files with 3 additions and 1 deletions

View file

@ -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"]

View file

@ -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"