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

Merge pull request #28 from YunoHost-Apps/testing

restore recreate log dir
This commit is contained in:
Gérard Collin 2024-07-21 11:19:55 +02:00 committed by GitHub
commit c4f16c7626
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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"