Skip to content

Commit 355f352

Browse files
committed
do not download the offline package by default in bootstrap
1 parent 98fc33c commit 355f352

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bootstrap

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# File : bootstrap
44
# Desc : setup local repo & install boot utils
55
# Ctime : 2022-10-16
6-
# Mtime : 2024-02-21
6+
# Mtime : 2024-02-29
77
# Path : bootstrap
88
# Author : Ruohang Feng (rh@vonng.com)
99
# License : AGPLv3
@@ -32,7 +32,7 @@ PIGSTY_VERSION=v2.6.0
3232
# -n --no : do not download pkg.tgz from internet
3333
#--------------------------------------------------------------#
3434
REGION="" # which mirror to use? (default|china)
35-
DOWNLOAD_PKG=ask # download pkg.tgz ? (ask|yes|no, ask by default)
35+
DOWNLOAD_PKG=no # download pkg.tgz ? (ask|yes|no, no by default)
3636
PKG_PATH=/tmp/pkg.tgz # which pkg to be used ? (/tmp/pkg.tgz by default)
3737

3838

@@ -555,9 +555,11 @@ function check_repo_file(){
555555
fi
556556

557557
if [[ ${OS_PACKAGE} == "rpm" ]]; then
558+
log_warn "rpm cache = updating, make take a while"
558559
sudo yum clean all -q
559560
sudo yum makecache -q
560561
elif [[ ${OS_PACKAGE} == "deb" ]]; then
562+
log_warn "apt cache = updating, make take a while"
561563
sudo apt update
562564
fi
563565

@@ -639,7 +641,7 @@ function main(){
639641
check_kernel # kernel = Linux
640642
check_machine # machine = x86_64
641643
check_package_manager # package = rpm|deb, manager = dnf|yum|zypper|apt|apt-get
642-
check_vendor_version # release = centos, version = 7,8,9...
644+
check_vendor_version # release = rocky, version = 7,8,9...
643645
check_sudo # current_user = NOPASSWD sudo
644646
check_pkg # check offline installation package exists (INTERACTIVE: ask for download confirmation)
645647
check_repo # create repo from pkg.tgz if exists

0 commit comments

Comments
 (0)