From 2380304b9e9c44bbecfdfc3f0ed752ad1ae368d0 Mon Sep 17 00:00:00 2001 From: "Xavier Pillons (MSFT)" Date: Tue, 20 Feb 2024 10:29:38 +0100 Subject: [PATCH] install in /opt and not root --- bicep/install.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/bicep/install.sh b/bicep/install.sh index 173031df..94a4b131 100644 --- a/bicep/install.sh +++ b/bicep/install.sh @@ -58,6 +58,7 @@ esac echo "* Cloning az-hop repo" +cd /opt if [ -e az-hop ]; then rm -rf az-hop fi @@ -131,16 +132,6 @@ sed -i "s/__ADMIN_PASSWORD__/$(sed 's/[&/\]/\\&/g' <<< $admin_pass)/g" $azhop_ro jq .azhopPackerOptions.value azhopOutputs.json > $azhop_root/packer/options.json -# We probably don't want to build custom images as part of the cloud-init step -# if [ "$(jq -r .azhopConfig.value.features.sig azhopOutputs.json)" == "true" ]; then -# echo "* Building images" -# cd $azhop_root/packer -# ./build_image.sh -i azhop-compute-centos-7.9.json -# ./build_image.sh -i azhop-desktop-centos-7.9.json -# fi - - - echo "* Generating passwords" cd $azhop_root ./create_passwords.sh