View Single Post
  #26  
Old 1st July 2010, 15:57
Thomas Jensen Thomas Jensen is offline
Senior Member
 
Join Date: Apr 2009
Posts: 127
Thanks: 5
Thanked 1 Time in 1 Post
Default

Code:
#!/bin/bash

cd /tmp

if [ -f ISPConfig-3-stable.tar.gz ]
then
rm -f ISPConfig-3-stable.tar.gz
fi

wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
if [ -f ISPConfig-3-stable.tar.gz ]
then
        tar xvfz ISPConfig-3-stable.tar.gz
        cd ispconfig3_install/install/
        php -q update.php
        rm -rf /tmp/ispconfig3_install/install
        rm -f ISPConfig-3-stable.tar.gz
else
        echo "Unable to download the update."
fi

exit 0
Maybe it's worth to mention that I'm running PHP 5.3?
Reply With Quote