mirror of
				https://github.com/flynx/proxmox-utils.git
				synced 2025-10-31 12:10:07 +00:00 
			
		
		
		
	testing...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									b77b5944d8
								
							
						
					
					
						commit
						5bb1359676
					
				| @ -292,6 +292,10 @@ buildAssets(){ | |||||||
| 	local ASSETS_DIR=$2 | 	local ASSETS_DIR=$2 | ||||||
| 	ASSETS_DIR=${ASSETS_DIR:=assets} | 	ASSETS_DIR=${ASSETS_DIR:=assets} | ||||||
| 
 | 
 | ||||||
|  | 	if ! [ -e $TEMPLATE_DIR ] ; then | ||||||
|  | 		return | ||||||
|  | 	fi | ||||||
|  | 
 | ||||||
| 	local TEMPLATES=($(find "$TEMPLATE_DIR" -type f)) | 	local TEMPLATES=($(find "$TEMPLATE_DIR" -type f)) | ||||||
| 	for file in "${TEMPLATES[@]}" ; do | 	for file in "${TEMPLATES[@]}" ; do | ||||||
| 		file=${file#${TEMPLATE_DIR}} | 		file=${file#${TEMPLATE_DIR}} | ||||||
|  | |||||||
| @ -92,14 +92,19 @@ sleep ${TIMEOUT:=5} | |||||||
| # 	https://www.turnkeylinux.org/docs/inithooks | # 	https://www.turnkeylinux.org/docs/inithooks | ||||||
| 
 | 
 | ||||||
| printf "# TKL setup, this may take a while" | printf "# TKL setup, this may take a while" | ||||||
| while ! $(lxc-attach $ID -- test -e /etc/inithooks.conf) \ | while ! $(lxc-attach $ID -- test -e /etc/inithooks.conf) ; do | ||||||
| 		|| ! [[ $(lxc-attach $ID -- cat /etc/inithooks.conf | wc -c) < 2 ]] ; do |  | ||||||
| 	printf '.' | 	printf '.' | ||||||
| 	sleep 2 | 	sleep 5 | ||||||
| done | done | ||||||
| echo | printf '+' | ||||||
|  | while ! [[ $(lxc-attach $ID -- cat /etc/inithooks.conf | wc -c) < 2 ]] ; do | ||||||
|  | 	printf '.' | ||||||
|  | 	sleep 5 | ||||||
|  | done | ||||||
|  | printf 'ready.\n' | ||||||
|  | sleep 5 | ||||||
| 
 | 
 | ||||||
| echo "# Starting TKL Setup (this may take a few minutes to start)..." | echo "# Starting TKL UI..." | ||||||
| @ lxc-attach $ID -- bash --login -c 'exit' | @ lxc-attach $ID -- bash --login -c 'exit' | ||||||
| 
 | 
 | ||||||
| exit | exit | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user