Skip to content

Commit

Permalink
clean_ova.sh: swapoff only if the platform is ESX
Browse files Browse the repository at this point in the history
clean_ova.sh:
- swapoff only if the platform is ESX
  • Loading branch information
liranmauda committed Mar 27, 2018
1 parent be367f8 commit 73a7583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deploy/NVA_build/clean_ova.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ fi

#reduce VM size
set +e
/sbin/swapoff -a

if ${isAws}
then
Expand All @@ -200,6 +199,7 @@ else
then
echo "using --dev, skipping zeroFile"
else
/sbin/swapoff -a
dd if=/dev/zero of=zeroFile.tmp bs=1M
rm -f zeroFile.tmp
fi
Expand Down

0 comments on commit 73a7583

Please sign in to comment.