Skip to content

Commit 0123869

Browse files
author
vogelor
committed
Fixed some autoupdate-problems
1 parent 039b461 commit 0123869

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

server/mods-available/remoteaction_core_module.inc.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,17 +179,16 @@ private function _doIspCUpdate($action) {
179179
exec("tar xvfz ISPConfig-" . $new_version . ".tar.gz");
180180

181181
/*
182-
* Start the automated update
182+
* Initialize the automated update
183+
* (the update is then done next start of server.sh
183184
*/
184185
chdir("/tmp/ispconfig3_install/install");
185186
exec("touch autoupdate");
186-
exec("php -q autoupdate.php");
187-
187+
188188
/*
189189
* do some clean-up
190190
*/
191191
exec("rm /tmp/ISPConfig-" . $new_version . ".tar.gz");
192-
exec("rm /tmp/ispconfig3_install -R");
193192

194193
/*
195194
* go back to the "old path"

server/server.sh

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,22 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
44

55
. /etc/profile
66

7-
/usr/bin/php -q /usr/local/ispconfig/server/server.php
7+
if [ -f /tmp/ispconfig3_install/install/autoupdate ]; then
8+
#
9+
# there is a auto-update waiting for update, so let's do it
10+
#
11+
cd /tmp/ispconfig3_install/install
12+
/usr/bin/php -q autoupdate.php
13+
cd /
14+
15+
#
16+
# do some clean-up
17+
#
18+
rm /tmp/ispconfig3_install -R
19+
20+
else
21+
#
22+
# there is no update waiting, so lets start the ISPConfig-System
23+
#
24+
/usr/bin/php -q /usr/local/ispconfig/server/server.php
25+
fi

0 commit comments

Comments
 (0)