Remove stale offline option to scripts
[icn.git] / env / metal3 / 01_install_package.sh
index ce5aa2f..afa3f0b 100755 (executable)
@@ -27,8 +27,7 @@ function install_essential_packages {
     vim \
     wget \
     git \
-    software-properties-common \
-    bridge-utils
+    software-properties-common
 
     update-alternatives --install /usr/bin/python python /usr/bin/python3 1
     update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
@@ -52,12 +51,6 @@ function install_ironic_packages {
     genisoimage \
     whois
 
-    if [ "$1" == "offline" ]; then
-    pip install --no-index
-        --find-links=file:$PIP_CACHE_DIR locat yq
-    return
-    fi
-
     pip install \
     lolcat \
     yq
@@ -65,13 +58,7 @@ function install_ironic_packages {
 
 install() {
     install_essential_packages
-    install_ironic_packages $1
+    install_ironic_packages
 }
 
-if [ "$#" -eq 0 ]; then
-    install online
-elif [ "$1" == "-o" ]; then
-    install offline
-else
-    exit 1
-fi
+install