Commit f99160d8 authored by tbrehm's avatar tbrehm
Browse files

Updated Ubuntu 8.04 instructions

Modified the update scripts to check if a download of the tar.gz has succeeded.
parent 22eabc90
...@@ -115,7 +115,7 @@ ___ ...@@ -115,7 +115,7 @@ ___
set docroot to: set docroot to:
### ###
docroot=/var/clients docroot=/var/www/clients
### ###
Change: application/x-httpd-php=php:/usr/bin/php-cgi to: Change: application/x-httpd-php=php:/usr/bin/php-cgi to:
......
...@@ -95,11 +95,13 @@ if($method == 'stable') { ...@@ -95,11 +95,13 @@ if($method == 'stable') {
$new_version = trim($new_version); $new_version = trim($new_version);
if($new_version != ISPC_APP_VERSION) { if($new_version != ISPC_APP_VERSION) {
passthru('/usr/local/ispconfig/server/scripts/update_from_tgz.sh'); passthru('/usr/local/ispconfig/server/scripts/update_from_tgz.sh');
exit;
} else { } else {
echo "There are no updates available for ISPConfig ".ISPC_APP_VERSION."\n"; echo "There are no updates available for ISPConfig ".ISPC_APP_VERSION."\n";
} }
} else { } else {
passthru('/usr/local/ispconfig/server/scripts/update_from_svn.sh'); passthru('/usr/local/ispconfig/server/scripts/update_from_svn.sh');
exit;
} }
......
...@@ -5,4 +5,6 @@ svn export svn://svn.ispconfig.org/ispconfig3/trunk/ ...@@ -5,4 +5,6 @@ svn export svn://svn.ispconfig.org/ispconfig3/trunk/
cd trunk/install cd trunk/install
php -q update.php php -q update.php
cd /tmp cd /tmp
rm -rf /tmp/trunk rm -rf /tmp/trunk
\ No newline at end of file
exit 0
\ No newline at end of file
...@@ -8,8 +8,15 @@ rm -f ISPConfig-3-stable.tar.gz ...@@ -8,8 +8,15 @@ rm -f ISPConfig-3-stable.tar.gz
fi fi
wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
tar xvfz ISPConfig-3-stable.tar.gz if [ -f ISPConfig-3-stable.tar.gz ]
cd ispconfig3_install/install/ then
php -q update.php tar xvfz ISPConfig-3-stable.tar.gz
rm -rf /tmp/ispconfig3_install/install cd ispconfig3_install/install/
rm -f ISPConfig-3-stable.tar.gz php -q update.php
\ No newline at end of file rm -rf /tmp/ispconfig3_install/install
rm -f ISPConfig-3-stable.tar.gz
else
echo "Unable to download the update."
fi
exit 0
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment