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)"; }