Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
01238695
Commit
01238695
authored
Mar 29, 2011
by
vogelor
Browse files
Fixed some autoupdate-problems
parent
039b461d
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/mods-available/remoteaction_core_module.inc.php
View file @
01238695
...
...
@@ -179,17 +179,16 @@ class remoteaction_core_module {
exec
(
"tar xvfz ISPConfig-"
.
$new_version
.
".tar.gz"
);
/*
* Start the automated update
* Initialize the automated update
* (the update is then done next start of server.sh
*/
chdir
(
"/tmp/ispconfig3_install/install"
);
exec
(
"touch autoupdate"
);
exec
(
"php -q autoupdate.php"
);
/*
* do some clean-up
*/
exec
(
"rm /tmp/ISPConfig-"
.
$new_version
.
".tar.gz"
);
exec
(
"rm /tmp/ispconfig3_install -R"
);
/*
* go back to the "old path"
...
...
server/server.sh
View file @
01238695
...
...
@@ -4,4 +4,22 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
.
/etc/profile
/usr/bin/php
-q
/usr/local/ispconfig/server/server.php
if
[
-f
/tmp/ispconfig3_install/install/autoupdate
]
;
then
#
# there is a auto-update waiting for update, so let's do it
#
cd
/tmp/ispconfig3_install/install
/usr/bin/php
-q
autoupdate.php
cd
/
#
# do some clean-up
#
rm
/tmp/ispconfig3_install
-R
else
#
# there is no update waiting, so lets start the ISPConfig-System
#
/usr/bin/php
-q
/usr/local/ispconfig/server/server.php
fi
\ 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