Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
986f1c41
Commit
986f1c41
authored
Dec 21, 2008
by
redray
Browse files
cron errors got to logfile now - bugfix
parent
9eef0284
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/lib/installer_base.lib.php
View file @
986f1c41
...
...
@@ -1042,12 +1042,9 @@ class installer_base {
if
(
stristr
(
$val
,
'/usr/local/ispconfig'
))
unset
(
$existing_root_cron_jobs
[
$key
]);
}
// Crontab must end with an empty line or comment!
$root_cron_jobs
=
array
(
'# --- ISPConfig ----'
,
'* * * * * /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/var/log/ispconfig/cron.log'
,
'30 00 * * * /usr/local/ispconfig/server/cron_daily.sh > /dev/null 2>> /var/log/var/log/ispconfig/cron.log'
,
'# ------------------'
'* * * * * /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log'
,
'30 00 * * * /usr/local/ispconfig/server/cron_daily.sh > /dev/null 2>> /var/log/ispconfig/cron.log'
);
foreach
(
$root_cron_jobs
as
$cron_job
)
{
if
(
!
in_array
(
$cron_job
.
"
\n
"
,
$existing_root_cron_jobs
))
{
...
...
@@ -1064,11 +1061,8 @@ class installer_base {
exec
(
'crontab -u getmail -l > crontab.txt'
);
$existing_cron_jobs
=
file
(
'crontab.txt'
);
// Crontab must end with an empty line or comment!
$cron_jobs
=
array
(
'# --- ISPConfig ----'
,
'*/5 * * * * '
.
$cf
[
'program'
]
.
' -g '
.
$cf
[
'config_dir'
]
.
' -r '
.
$cf
[
'config_dir'
]
.
'/*.conf > /dev/null 2>> /var/log/var/log/ispconfig/cron.log'
,
'# ------------------'
'*/5 * * * * '
.
$cf
[
'program'
]
.
' -g '
.
$cf
[
'config_dir'
]
.
' -r '
.
$cf
[
'config_dir'
]
.
'/*.conf > /dev/null 2>> /var/log/ispconfig/cron.log'
);
// remove existing ispconfig cronjobs, in case the syntax has changed
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment