testing...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-01-08 02:26:47 +03:00
parent cf76f419ab
commit 0a8ca779ef
2 changed files with 17 additions and 11 deletions

View File

@ -210,16 +210,20 @@ xreadpass(){
# #
tklWaitForSetup(){ tklWaitForSetup(){
printf "$1" printf "$1"
while ! $(lxc-attach $ID -- test -e /etc/inithooks.conf) ; do if [ -z $DRY_RUN ] ; then
printf '.' while ! $(lxc-attach $ID -- test -e /etc/inithooks.conf) ; do
printf '.'
sleep 5
done
printf '+'
sleep 5 sleep 5
done while ! [[ $(lxc-attach $ID -- cat /etc/inithooks.conf | wc -c) < 2 ]] ; do
printf '+' printf '.'
sleep 5 sleep 5
while ! [[ $(lxc-attach $ID -- cat /etc/inithooks.conf | wc -c) < 2 ]] ; do done
printf '.' else
sleep 5 printf '.+..'
done fi
printf 'ready.\n' printf 'ready.\n'
sleep 5 sleep 5
} }

View File

@ -93,14 +93,16 @@ sleep ${TIMEOUT:=5}
tklWaitForSetup "# TKL setup, this may take a while" tklWaitForSetup "# TKL setup, this may take a while"
@ pct reboot $ID
echo "# Starting TKL UI..." echo "# Starting TKL UI..."
#@ lxc-attach $ID -- bash --login -c 'exit' @ lxc-attach $ID -- /usr/sbin/trunkey-init
exit exit
# XXX the CT will reboot -- wait... # XXX the CT will reboot -- wait...
##@ lxc-attach $ID -- /usr/sbin/trunkey-init
# #
#echo "# Updating config..." #echo "# Updating config..."
## XXX update /var/www/nextcloud/config/config.php ## XXX update /var/www/nextcloud/config/config.php