Update ubuntuInit.sh

This commit is contained in:
Molly Lau 2023-06-08 07:29:34 +09:00 committed by GitHub
parent 560a25998d
commit 39bcf9cc11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@ mapperDevice=$(kpartx -av $loopDevice | grep "$loopDeviceNum" | head -n 1 | awk
mount /dev/mapper/$mapperDevice /mnt
# download cloud init file
wget --no-check-certificate -O /mnt/etc/cloud/cloud.cfg.d/99-fake_cloud.cfg "$cloudInitUrl"
wget --no-check-certificate -O /mnt/etc/cloud/cloud.cfg.d/99-fake_cloud.cfg ''$cloudInitUrl''
# user config
sed -ri 's/HostName/'${HostName}'/g' /mnt/etc/cloud/cloud.cfg.d/99-fake_cloud.cfg