From fdeb72d16b0e970fcb1e6dff89925205ca12c7f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Collin?= Date: Sun, 21 Jul 2024 10:55:27 +0200 Subject: [PATCH] restore recreate log dir --- manifest.toml | 2 +- scripts/restore | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 405d765..206d063 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Dont-code Services" 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" -version = "0.3.2~ynh6" +version = "0.3.2~ynh7" maintainers = ["Dont-code Team"] diff --git a/scripts/restore b/scripts/restore index 5843df2..2da03fc 100755 --- a/scripts/restore +++ b/scripts/restore @@ -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/logrotate.d/$app" +mkdir --parents /var/log/$app for service_name in "${SERVICES_LIST[@]}"; do ynh_restore_file --origin_path="/etc/systemd/system/${app}-${service_name}.service"