From: xf0r3m Date: Wed, 19 Jul 2023 16:06:07 +0000 (+0200) Subject: Poprawienie pauzy - tworzenie kontenerów, funkcja 'idle-fetch-containers', script... X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=78342396a611b19d3fd1ba99d6f78121a329b4d3;p=idle.git Poprawienie pauzy - tworzenie kontenerów, funkcja 'idle-fetch-containers', script 'idle.sh' --- diff --git a/idle.sh b/idle.sh index a46e0a6..415aebf 100644 --- a/idle.sh +++ b/idle.sh @@ -71,6 +71,7 @@ function idle-fetch-containers() { sec=1; while [ $sec -le 5 ]; do echo "Waiting $((5 - (sec - 1))) sec to get container full up"; + sleep 1; sec=$((sec + 1)); done /usr/bin/lxc file push ${HOME}/idle/$startupScript ${containerName}/root/${startupScript}