diff --git a/apache.cf b/apache.cf index b8e7ddc..0c8cb3f 100644 --- a/apache.cf +++ b/apache.cf @@ -250,6 +250,26 @@ methods: # "apache_php_pkgs_installed" #}; + # + +files: + "$(sys.workdir)/data/agent/apache/." + create => "true", + handle => "apache_work_dir_created"; +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", + contain => wmde_cmd_useshell; + + + +# "echo" +# args => "dummy.conf > $(sys.workdir)/data/agent/apache/domains.txt", +# inform => "false", +# contain => wmde_cmd_useshell; + + reports: @@ -345,6 +365,15 @@ methods: "any" usebundle => restart_apache("$(site[domain])"), depends_on => {"vhost_cfg_done$(site[domain])" }; +commands: + + + "echo" + args => "$(site[domain]).conf >> $(sys.workdir)/data/agent/apache/domains.txt", + inform => "false", + depends_on => {"vhost_cfg_done$(site[domain])"}, + contain => wmde_cmd_useshell; + reports: