From 5454a5ab2b08f2800baf5e147507b15a46d285cc Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 8 Jan 2024 01:27:22 +0300 Subject: [PATCH] testing... Signed-off-by: Alex A. Naanou --- nextcloud/make.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nextcloud/make.sh b/nextcloud/make.sh index 6af7b5c..7c7a8a4 100755 --- a/nextcloud/make.sh +++ b/nextcloud/make.sh @@ -92,7 +92,8 @@ sleep ${TIMEOUT:=5} # https://www.turnkeylinux.org/docs/inithooks printf "# TKL setup, this may take a while" -while ! $(lxc-attach $ID -- test -e /etc/inithooks.conf) ; do +while ! $(lxc-attach $ID -- test -e /etc/inithooks.conf) \ + && [[ $(lxc-attach $ID -- cat /etc/inithooks.conf | wc -c) > 2 ]] ; do printf '.' sleep 2 done @@ -101,6 +102,8 @@ echo echo "# Starting TKL Setup (this may take a few minutes to start)..." @ lxc-attach $ID -- bash --login -c 'exit' +exit + # XXX the CT will reboot -- wait... ##@ lxc-attach $ID -- /usr/sbin/trunkey-init