aboutsummaryrefslogtreecommitdiff
path: root/slackupgrade
diff options
context:
space:
mode:
Diffstat (limited to 'slackupgrade')
-rw-r--r--slackupgrade6
1 files changed, 3 insertions, 3 deletions
diff --git a/slackupgrade b/slackupgrade
index ff4d46f..ada387b 100644
--- a/slackupgrade
+++ b/slackupgrade
@@ -23,2 +23,3 @@ set -e
: ${SLACKUPGRADE_PKGDIR:=/var/slackupgrade}
+: ${SLACKUPGRADE_MIRRORS_URL:=https://mirrors.slackware.com/slackware}
# Slackware root directory
@@ -463,6 +464,5 @@ cd $tempdir
-mirrors_url=https://mirrors.slackware.com/slackware
if [ -z "$rooturl" ]; then
dnfunc_init
- if ! $dnfunc index.html $mirrors_url; then
+ if ! $dnfunc index.html $SLACKUPGRADE_MIRRORS_URL; then
abend "exiting"
@@ -477,3 +477,3 @@ if [ -z "$rooturl" ]; then
if [ -n "$new_version" ]; then
- rooturl="$mirrors_url/slackware$ARCH-$new_version"
+ rooturl="$SLACKUPGRADE_MIRRORS_URL/slackware$ARCH-$new_version"
info "using $rooturl as distribution top-level URL"

Return to:

Send suggestions and report system problems to the System administrator.