1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dont-code_ynh.git synced 2024-09-03 18:26:34 +02:00

restore recreate log dir

This commit is contained in:
Gérard Collin 2024-07-21 10:55:27 +02:00
parent 799219cce4
commit fdeb72d16b
2 changed files with 2 additions and 1 deletions

View file

@ -7,7 +7,7 @@ name = "Dont-code Services"
description.en = "Install services and databases needed to support Dont-code platform" description.en = "Install services and databases needed to support Dont-code platform"
description.fr = "Installe les services et base de données nécessaires pour utiliser la plateforme Dont-code" description.fr = "Installe les services et base de données nécessaires pour utiliser la plateforme Dont-code"
version = "0.3.2~ynh6" version = "0.3.2~ynh7"
maintainers = ["Dont-code Team"] maintainers = ["Dont-code Team"]

View file

@ -73,6 +73,7 @@ ynh_script_progression --message="Restoring system configurations related to $ap
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_restore_file --origin_path="/etc/logrotate.d/$app" ynh_restore_file --origin_path="/etc/logrotate.d/$app"
mkdir --parents /var/log/$app
for service_name in "${SERVICES_LIST[@]}"; do for service_name in "${SERVICES_LIST[@]}"; do
ynh_restore_file --origin_path="/etc/systemd/system/${app}-${service_name}.service" ynh_restore_file --origin_path="/etc/systemd/system/${app}-${service_name}.service"