From febda81f7bc53ee56c4cde030be6598ca6491453 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 24 Oct 2024 12:50:01 -0400 Subject: [PATCH] Fix incorrect ifup commands --- install-pvcbootstrapd.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install-pvcbootstrapd.sh b/install-pvcbootstrapd.sh index ab51531..d7a0a74 100755 --- a/install-pvcbootstrapd.sh +++ b/install-pvcbootstrapd.sh @@ -266,7 +266,11 @@ case ${start_flag} in ;; *) echo - sudo ifup ${bootstrap_interface} + if [[ "${is_bootstrap_interface_vlan}" == "yes" ]]; then + sudo ifup vlan${bootstrap_vlan} + else + sudo ifup ${bootstrap_interface} + fi sudo service apt-cacher-ng restart export PVCD_CONFIG_FILE="${root_directory}/pvcbootstrapd/pvcbootstrapd.yaml" ${root_directory}/pvcbootstrapd/pvcbootstrapd.py --init-only