File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 2222: ${LOCAL_REPO_DIRECTORY:=/ local-repository}
2323if [[ -d ${LOCAL_REPO_DIRECTORY} ]]; then
2424 echo " Setting up local-repository"
25- createrepo /local-repository
25+ createrepo " ${LOCAL_REPO_DIRECTORY} "
2626
2727 cat > /etc/yum.repos.d/local.repo << EOL
2828[local-repository]
2929name=NVIDIA Container Toolkit Local Packages
30- baseurl=file:///local-repository
31- enabled=0
30+ baseurl=file://${LOCAL_REPO_DIRECTORY}
31+ enabled=1
3232gpgcheck=0
3333protect=1
3434EOL
35- yum-config-manager --enable local-repository
35+
3636elif [[ -n ${TEST_REPO} ]]; then
3737 ./install_repo.sh ${TEST_REPO}
3838else
Original file line number Diff line number Diff line change 2222: ${LOCAL_REPO_DIRECTORY:=/ local-repository}
2323if [[ -d ${LOCAL_REPO_DIRECTORY} ]]; then
2424 echo " Setting up local-repository"
25- createrepo /local-repository
25+ createrepo " ${LOCAL_REPO_DIRECTORY} "
2626
2727 cat > /etc/yum.repos.d/local.repo << EOL
2828[local-repository]
2929name=NVIDIA Container Toolkit Local Packages
30- baseurl=file:///local-repository
31- enabled=0
30+ baseurl=file://${LOCAL_REPO_DIRECTORY}
31+ enabled=1
3232gpgcheck=0
3333protect=1
3434EOL
35- yum-config-manager --enable local-repository
3635elif [[ -n ${TEST_REPO} ]]; then
3736 ./install_repo.sh ${TEST_REPO}
3837else
You can’t perform that action at this time.
0 commit comments