From 0b7b31eb3e2f4cf8b81d141eec4dbfe0416195dc Mon Sep 17 00:00:00 2001 From: Tube <7u83@mail.ru> Date: Sat, 4 Nov 2023 22:07:30 +0100 Subject: [PATCH] Dependencies added --- apache.cf | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/apache.cf b/apache.cf index e5243b2..83f41d0 100644 --- a/apache.cf +++ b/apache.cf @@ -41,6 +41,7 @@ vars: "cfg_deps" slist => { "apache_pkgs_installed" }; + any:: "log_dir_mode" string => "750"; freebsd:: @@ -212,7 +213,7 @@ commands: reports: } -bundle agent install_apache(raw) +bundle agent install_apache { methods: @@ -287,6 +288,8 @@ commands: "/bin/sh" args => "$(sys.workdir)/inputs/$(def.wmde_libdir)/scripts/del-files-not-in-list.sh $(apache.cfg_dir)/Vhosts $(sys.workdir)/data/agent/apache/domains.txt && echo dummy.conf > $(sys.workdir)/data/agent/apache/domains.txt", inform => "false", + handle => "apache_vhost_dir_cleaned", + depends_on => {"apache_dummy_conf_created"}, contain => wmde_cmd_useshell; @@ -356,9 +359,14 @@ vars: "$(site[ssl_key])"); use_ssl&(use_certbot):: - "vhostdeps" slist => {"apache_ssl_created$(site[domain])"}; + "vhostdeps" slist => { + "apache_ssl_created$(site[domain])", + "apache_vhost_dir_cleaned" + }; (!use_ssl)|(!use_certbot):: - "vhostdeps" slist => {}; + "vhostdeps" slist => { + "apache_vhost_dir_cleaned" + }; files: delete::