Skip to content

Commit fffd4d0

Browse files
committed
Added server.sh script
1 parent af8f1ba commit fffd4d0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ public function install_crontab()
646646
exec('crontab -u root -l > crontab.txt');
647647
$existing_root_cron_jobs = file('crontab.txt');
648648

649-
$root_cron_jobs = array('* * * * * /usr/bin/php -q /usr/local/ispconfig/server/server.sh &> /dev/null');
649+
$root_cron_jobs = array('* * * * * /usr/local/ispconfig/server/server.sh &> /dev/null');
650650
foreach($root_cron_jobs as $cron_job) {
651651
if(!in_array($cron_job."\n", $existing_root_cron_jobs)) {
652652
$existing_root_cron_jobs[] = $cron_job."\n";

server/server.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
4+
5+
/usr/bin/php -q /usr/local/ispconfig/server/server.php

0 commit comments

Comments
 (0)