From d1a87207f1951fb6ebda7029a9d9a7038c406573 Mon Sep 17 00:00:00 2001 From: Igor Date: Mon, 30 Sep 2024 16:36:18 +0200 Subject: [PATCH] Update deploy.sh --- generate-runners/deploy.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/generate-runners/deploy.sh b/generate-runners/deploy.sh index 30ad4f32..de699104 100755 --- a/generate-runners/deploy.sh +++ b/generate-runners/deploy.sh @@ -64,12 +64,10 @@ if [[ -n "${OWNER}" && -n "${REPO}" ]]; then fi # make swap file if not exists. useful for adhoc cloud runners -if [[ -z $(swapon --show=SIZE --raw --noheadings | sed 's/[^0-9]//g') ]]; then -sudo fallocate -l $(free -h | awk 'NR==2{print(int(substr($2,1,length($2)-1)/2+.5))}')G /swapfile +sudo fallocate -l 8G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile -fi # update OS and install dependencies sudo apt-get -q update