temporarily bring interface active during install.
authorAndy Witter <awitter@georgialibraries.org>
Tue, 9 Apr 2019 19:03:20 +0000 (15:03 -0400)
committerAndy Witter <awitter@georgialibraries.org>
Tue, 9 Apr 2019 19:03:20 +0000 (15:03 -0400)
templates/setup.sh

index 1fb1ce3..19202ea 100755 (executable)
@@ -219,6 +219,15 @@ if [ -e tar_file_apt.list ]
        $APT_TOOL -y install $(cat tar_file_apt.list) 2>&1 | tee -a "$INSTALL_LOG"
 fi
 
+### Temporary create and alias interface for installation
+GetNics
+if [ ! -z "${SECOND_PHYSICAL_INTERFACE}" ]
+then
+    PRIMARY_INTERFACE="${SECOND_PHYSICAL_INTERFACE}"
+fi
+ip a add Priv_IP/My_CIDR dev $PRIMARY_INTERFACE label ${PRIMARY_INTERFACE}:0 #TODO update Variable to $3PRIMARY_INTERFACE - done
+ip link set $PRIMARY_INTERFACE up
+
 ### Fix bug in NFS that caused failure to start at boot time
 if cat tar_file_apt.list | grep -q nfs
 then