Merge "Create swapfile only on nodepool nodes"

This commit is contained in:
Jenkins 2017-09-21 14:36:55 +00:00 committed by Gerrit Code Review
commit 7b25352312
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ set -o xtrace
set -o errexit
function setup_disk {
if [ ! -f /swapfile ]; then
if [[ -f /etc/nodepool/provider && ! -f /swapfile ]]; then
sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
sudo chmod 0600 /swapfile

View File

@ -4,7 +4,7 @@ set -o xtrace
set -o errexit
function setup_disk {
if [ ! -f /swapfile ]; then
if [[ -f /etc/nodepool/provider && ! -f /swapfile ]]; then
sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
sudo chmod 0600 /swapfile