From a6f33378fef88b9434eaf7870c8002d61c6e8f4d Mon Sep 17 00:00:00 2001 From: Josef Janda Date: Tue, 9 Jan 2024 13:59:38 +0100 Subject: [PATCH] [ubuntu] refactor script --- .../ubuntu/scripts/build/configure-environment-azure-arm.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/images/ubuntu/scripts/build/configure-environment-azure-arm.sh b/images/ubuntu/scripts/build/configure-environment-azure-arm.sh index 5f8088ba0de6..c3eb78085f29 100644 --- a/images/ubuntu/scripts/build/configure-environment-azure-arm.sh +++ b/images/ubuntu/scripts/build/configure-environment-azure-arm.sh @@ -5,6 +5,6 @@ ################################################################################ # Change waagent entries to use /mnt for swapfile -sed -i 's/ResourceDisk.Format=n/ResourceDisk.Format=y/g' /etc/waagent.conf -sed -i 's/ResourceDisk.EnableSwap=n/ResourceDisk.EnableSwap=y/g' /etc/waagent.conf -sed -i 's/ResourceDisk.SwapSizeMB=0/ResourceDisk.SwapSizeMB=4096/g' /etc/waagent.conf +sed -i -e 's/ResourceDisk.Format=n/ResourceDisk.Format=y/g' \ + -e 's/ResourceDisk.EnableSwap=n/ResourceDisk.EnableSwap=y/g' \ + -e 's/ResourceDisk.SwapSizeMB=0/ResourceDisk.SwapSizeMB=4096/g' /etc/waagent.conf