Skip to content

Commit 441afe5

Browse files
author
Marius Cramer
committed
Merge branch 'master' into 'master'
Master
2 parents fa9c29e + 0e963f7 commit 441afe5

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2143,7 +2143,7 @@ public function install_crontab() {
21432143

21442144
$root_cron_jobs = array(
21452145
"* * * * * ".$install_dir."/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` \"\$line\" >> ".$conf['ispconfig_log_dir']."/cron.log; done",
2146-
"30 00 * * * ".$install_dir."/server/cron_daily.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` \"\$line\" >> ".$conf['ispconfig_log_dir']."/cron.log; done"
2146+
"30 00 * * * ".$install_dir."/server/cron.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` \"\$line\" >> ".$conf['ispconfig_log_dir']."/cron.log; done"
21472147
);
21482148

21492149
if ($conf['nginx']['installed'] == true) {

interface/web/dns/form/dns_dkim.tform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
'type' => 'TOLOWER')
8787
),
8888
'validators' => array ( 0 => array ( 'type' => 'REGEX',
89-
'regex' => '/^[\w\.\-]{0,255}$/',
89+
'regex' => '/^[a-zA-Z0-9\.\-\_]{0,255}$/',
9090
'errmsg'=> 'name_error_regex'),
9191
),
9292
'default' => '',

server/cron.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ if [ -f /usr/local/ispconfig/server/lib/php.ini ]; then
99
fi
1010
fi
1111

12+
cd /usr/local/ispconfig/server
1213
/usr/bin/php -q /usr/local/ispconfig/server/cron.php

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ public function onRunJob() {
8484
}
8585

8686
if($run_backups){
87-
$sql = "SELECT * FROM web_domain WHERE server_id = ".$conf['server_id']." AND (type = 'vhost' OR type = 'vhostsubdomain')";
87+
//* 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'";
8889
$records = $app->db->queryAllRecords($sql);
8990
if(is_array($records)) {
9091
foreach($records as $rec) {

0 commit comments

Comments
 (0)