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
lolo888
ISPConfig 3
Commits
fffd4d03
Commit
fffd4d03
authored
Oct 17, 2007
by
tbrehm
Browse files
Added server.sh script
parent
af8f1ba1
Changes
2
Hide whitespace changes
Inline
Side-by-side
install/lib/installer_base.lib.php
View file @
fffd4d03
...
...
@@ -646,7 +646,7 @@ class installer_base {
exec
(
'crontab -u root -l > crontab.txt'
);
$existing_root_cron_jobs
=
file
(
'crontab.txt'
);
$root_cron_jobs
=
array
(
'* * * * *
/usr/bin/php -q
/usr/local/ispconfig/server/server.sh &> /dev/null'
);
$root_cron_jobs
=
array
(
'* * * * * /usr/local/ispconfig/server/server.sh &> /dev/null'
);
foreach
(
$root_cron_jobs
as
$cron_job
)
{
if
(
!
in_array
(
$cron_job
.
"
\n
"
,
$existing_root_cron_jobs
))
{
$existing_root_cron_jobs
[]
=
$cron_job
.
"
\n
"
;
...
...
server/server.sh
0 → 100644
View file @
fffd4d03
#!/bin/bash
PATH
=
/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
/usr/bin/php
-q
/usr/local/ispconfig/server/server.php
\ No newline at end of file
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