From bc3302193e612d02ee736e43a19e7b254bd48825 Mon Sep 17 00:00:00 2001 From: Tobias Herre Date: Sat, 28 Oct 2023 01:12:26 +0200 Subject: [PATCH] cronjob creation for backup, .https is installed via seed_cp --- vimbadmin.cf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vimbadmin.cf b/vimbadmin.cf index 80b8acc..d264b4c 100644 --- a/vimbadmin.cf +++ b/vimbadmin.cf @@ -57,7 +57,7 @@ files: "$(cfg[install_dir])/public/.htaccess" - copy_from => local_cp("$(cfg[install_dir])/public/.htaccess.dist"), + copy_from => seed_cp("$(cfg[install_dir])/public/.htaccess.dist"), perms => mog("644","root","root"), depends_on => {"vimbadmin_untarred"}, handle => "vimbadmin_htaccess_copied"; @@ -130,6 +130,9 @@ methods: "any" usebundle => php_composer; "any" usebundle => mysql_table_exists(@(cfg),"admin"); + vimbadmin_restore_db_file:: + "any" usebundle => create_mysql_backup_cron_job(@(cfg),"$(cfg[restore_db_file])","admin","true"); + reports: # "VIMBADMIN $(cfg[restore_db_file])"; @@ -147,6 +150,6 @@ reports: body contain vimbadmin_cmd { - exec_owner => "www-data"; - exec_group => "www-data"; + exec_owner => "$(apache.www_user)"; + exec_group => "$(apache.www_group)"; }