File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed
Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 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 ' => '' ,
Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ if [ -f /usr/local/ispconfig/server/lib/php.ini ]; then
99 fi
1010fi
1111
12+ cd /usr/local/ispconfig/server
1213/usr/bin/php -q /usr/local/ispconfig/server/cron.php
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments