Skip to content

Commit

Permalink
Update deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik authored Sep 30, 2024
1 parent 02f4cb5 commit d1a8720
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions generate-runners/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1a8720

Please sign in to comment.