Browse Source

Update podman-homeassistant-v3.sh

tteckster 3 years ago
parent
commit
98a97aa7b4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ct/podman-homeassistant-v3.sh

+ 2 - 2
ct/podman-homeassistant-v3.sh

@@ -221,7 +221,7 @@ header_info
         if [ -z $GATE1 ]; then GATE1="NONE" GATE=" "; 
         if [ -z $GATE1 ]; then GATE1="NONE" GATE=" "; 
         echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
         echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
         else
         else
-          GATE="gw=$GATE1"
+          GATE=",gw=$GATE1"
         echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
         echo -en "${DGN}Set Gateway IP To ${BL}$GATE1${CL}"
         fi;
         fi;
 echo -e " ${CM}${CL} \n"
 echo -e " ${CM}${CL} \n"
@@ -298,7 +298,7 @@ export PCT_DISK_SIZE=$DISK_SIZE
 export PCT_OPTIONS="
 export PCT_OPTIONS="
   -features $FEATURES
   -features $FEATURES
   -hostname $HN
   -hostname $HN
-  -net0 name=eth0,bridge=vmbr0,ip=$NET
+  -net0 name=eth0,bridge=vmbr0,ip=$NET$GATE
   $VLAN
   $VLAN
   -onboot 1
   -onboot 1
   -cores $CORE_COUNT
   -cores $CORE_COUNT