Skip to content

Commit 5efc46e

Browse files
committed
added missing part for vhostalias in cron-backup-script
1 parent bed7253 commit 5efc46e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/cron.d/500-backup.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function onRunJob() {
8585

8686
if($run_backups){
8787
//* backup only active domains
88-
$sql = "SELECT * FROM web_domain WHERE server_id = '".$conf['server_id']."' AND (type = 'vhost' OR type = 'vhostsubdomain') AND active = 'y'";
88+
$sql = "SELECT * FROM web_domain WHERE server_id = '".$conf['server_id']."' AND (type = 'vhost' OR type = 'vhostsubdomain' OR type = 'vhostalias') AND active = 'y'";
8989
$records = $app->db->queryAllRecords($sql);
9090
if(is_array($records)) {
9191
foreach($records as $rec) {

0 commit comments

Comments
 (0)