Marius Burkard
2016-04-20 4569cae57f127afd093794310ccd290d2d9fdf36
server/scripts/update_from_tgz.sh
@@ -1,7 +1,30 @@
#!/bin/bash
cd /tmp
{
    umask 0077 \
    && tmpdir=`mktemp -dt "$(basename $0).XXXXXXXXXX"` \
    && test -d "${tmpdir}" \
    && cd "${tmpdir}"
} || {
    echo 'mktemp failed'
    exit 1
}
wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
cd ispconfig3_install/install/
php -q update.php
rm -rf /tmp/ispconfig3_install/install
if [ -f ISPConfig-3-stable.tar.gz ]
then
   tar xvfz ISPConfig-3-stable.tar.gz
   cd ispconfig3_install/install/
   php -q \
        -d disable_classes= \
        -d disable_functions= \
        -d open_basedir= \
        update.php
    cd /tmp
    rm -rf "${tmpdir}"
else
   echo "Unable to download the update."
    exit 1
fi
exit 0