vogelor
2011-03-29 012386950fc18583ac3dbea03cca19ef2db46e18
Fixed some autoupdate-problems
2 files modified
27 ■■■■ changed files
server/mods-available/remoteaction_core_module.inc.php 7 ●●●●● patch | view | raw | blame | history
server/server.sh 20 ●●●●● patch | view | raw | blame | history
server/mods-available/remoteaction_core_module.inc.php
@@ -179,17 +179,16 @@
        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
@@ -4,4 +4,22 @@
. /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