Commit 7e7ed6ec authored by Thom's avatar Thom 🛠
Browse files

Update ISPConfig download url

parent 39bf4b24
Pipeline #12562 passed with stage
in 9 seconds
......@@ -121,7 +121,7 @@ if(isset($_SESSION['show_error_msg'])) {
*/
if($_SESSION["s"]["user"]["typ"] == 'admin') {
if(!isset($_SESSION['s']['new_ispconfig_version'])) {
$new_version = @file_get_contents('https://www.ispconfig.org/downloads/ispconfig3_version.txt');
$new_version = @file_get_contents('https://download.ispconfig.org/ispconfig3_version.txt');
$_SESSION['s']['new_ispconfig_version'] = trim($new_version);
}
$v1 = ISPC_APP_VERSION;
......
......@@ -201,7 +201,7 @@ class remoteaction_core_module {
/*
* Get the version-number of the newest version
*/
$new_version = @file_get_contents('https://www.ispconfig.org/downloads/ispconfig3_version.txt');
$new_version = @file_get_contents('https://download.ispconfig.org/ispconfig3_version.txt');
$new_version = trim($new_version);
/*
......@@ -217,7 +217,7 @@ class remoteaction_core_module {
exec("rm /tmp/ispconfig3_install -R");
/* get the newest version */
$app->system->exec_safe("wget ?", "https://www.ispconfig.org/downloads/ISPConfig-" . $new_version . ".tar.gz");
$app->system->exec_safe("wget ?", "https://download.ispconfig.org/ISPConfig-" . $new_version . ".tar.gz");
/* extract the files */
$app->system->exec_safe("tar xvfz ?", "ISPConfig-" . $new_version . ".tar.gz");
......
......@@ -127,13 +127,13 @@ if($patch_id == '') {
die();
}
$patch_data = @file_get_contents('https://ispconfig.org/downloads/patches/' . $patch_id . '.diff');
$patch_data = @file_get_contents('https://download.ispconfig.org/patches/' . $patch_id . '.diff');
if(!$patch_data) {
swriteln("Patch with id " . $patch_id . " does not exist.\n");
die();
}
$patch_text = @file_get_contents('https://ispconfig.org/downloads/patches/' . $patch_id . '.txt');
$patch_text = @file_get_contents('https://download.ispconfig.org/patches/' . $patch_id . '.txt');
if($patch_text) {
if($auto) {
$ok = 'y';
......
......@@ -91,7 +91,7 @@ echo "Please choose the update method. For production systems select 'stable'. \
$method = simple_query('Select update method', array('stable', 'nightly', 'git-develop'), 'stable');
if($method == 'stable') {
$new_version = @file_get_contents('https://www.ispconfig.org/downloads/ispconfig3_version.txt') or die('Unable to retrieve version file.');
$new_version = @file_get_contents('https://download.ispconfig.org/ispconfig3_version.txt') or die('Unable to retrieve version file.');
$new_version = trim($new_version);
if(version_compare($new_version, ISPC_APP_VERSION, '<=') && !in_array('--force', $argv, true)) {
echo "There are no updates available for ISPConfig ".ISPC_APP_VERSION."\n";
......
......@@ -22,9 +22,9 @@ SOURCE=$1
URL=""
if [[ "$SOURCE" == "stable" ]] ; then
URL="https://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz"
URL="https://download.ispconfig.org/ISPConfig-3-stable.tar.gz"
elif [[ "$SOURCE" == "nightly" ]] ; then
URL="https://www.ispconfig.org/downloads/ISPConfig-3-nightly.tar.gz"
URL="https://download.ispconfig.org/ISPConfig-3-nightly.tar.gz"
elif [[ "$SOURCE" == "git-develop" ]] ; then
URL="https://git.ispconfig.org/ispconfig/ispconfig3/-/archive/develop/ispconfig3-develop.tar.gz"
else
......
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