File tree Expand file tree Collapse file tree 2 files changed +22
-5
lines changed
Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments