mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-29 11:10:09 +00:00
testing...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
cf76f419ab
commit
0a8ca779ef
22
.pct-helpers
22
.pct-helpers
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user