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,6 +210,7 @@ xreadpass(){
#
tklWaitForSetup(){
printf "$1"
if [ -z $DRY_RUN ] ; then
while ! $(lxc-attach $ID -- test -e /etc/inithooks.conf) ; do
printf '.'
sleep 5
@ -220,6 +221,9 @@ tklWaitForSetup(){
printf '.'
sleep 5
done
else
printf '.+..'
fi
printf 'ready.\n'
sleep 5
}

View File

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