From 0c1620085d04d2fd47cc67ce89983c7431e7b889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20T=C3=B3th?= <tothmiklostibor@gmail.com> Date: Sun, 10 Jan 2021 23:13:30 +0100 Subject: [PATCH] better bootstrap.sh --- playbook-template/bootstrap.sh | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/playbook-template/bootstrap.sh b/playbook-template/bootstrap.sh index 1b2f790..9610244 100644 --- a/playbook-template/bootstrap.sh +++ b/playbook-template/bootstrap.sh @@ -17,31 +17,7 @@ downloadFile() { download "$reporaw/$1" "$1" } - -update() { - # TODO: versioning with tags - - if $NOUPDATE - then - return 0 - fi - - local prevhash - prevhash="$(md5hash "$0")" - download "$reporaw/bootstrap.sh" "$0" - local newhash - newhash="$(md5hash "$0")" - - if [[ "$prevhash" != "$newhash" ]] - then - exec bash "$0" - fi -} - -update - downloadFile "requirements.python.txt" -downloadFile "requirements.galaxy.yml" if ! command -v virtualenv &>/dev/null then -- GitLab