Skip to content

Commit

Permalink
[ubuntu] refactor script
Browse files Browse the repository at this point in the history
  • Loading branch information
jojand authored and jizi committed Jan 19, 2024
1 parent 90598ee commit a6f3337
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a6f3337

Please sign in to comment.