mirror of
				https://github.com/flynx/proxmox-utils.git
				synced 2025-10-31 20:20:08 +00:00 
			
		
		
		
	testing...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									9c2fe378f7
								
							
						
					
					
						commit
						5bf2dfa893
					
				| @ -94,21 +94,17 @@ sleep ${TIMEOUT:=5} | |||||||
| tklWaitForSetup | tklWaitForSetup | ||||||
| 
 | 
 | ||||||
| echo "# Starting TKL UI..." | echo "# Starting TKL UI..." | ||||||
| @ lxc-attach $ID -- bash -c "\ | @ lxc-attach $ID -- bash -c "HUB_APIKEY=SKIP SEC_UPDATES=SKIP /usr/sbin/turnkey-init" | ||||||
| 	HUB_APIKEY=SKIP \ |  | ||||||
| 	SEC_UPDATES=SKIP \ |  | ||||||
| 		/usr/sbin/turnkey-init" |  | ||||||
| 
 |  | ||||||
| # XXX the CT will reboot -- wait... |  | ||||||
| 
 | 
 | ||||||
| echo "# Updating config..." | echo "# Updating config..." | ||||||
| # XXX update /var/www/nextcloud/config/config.php | @ lxc-attach $ID -- sed -i \ | ||||||
| #	- trusted_domains | 	-e "/trusted_domains/i\  'trusted_proxies' =>\n  array (\n    '${GATE_LAN_IP}/32',\n  )," \ | ||||||
| #	- trusted_proxies | 	-e "/trusted_domains[^(]*([^)]*)/i\  'trusted_proxies' =>\n  array (\n    '${GATE_LAN_IP}/32',\n  )," \ | ||||||
| @ lxc-attach $ID -- bash -c "\ | 	/var/www/nextcloud/config/config.php | ||||||
| 	sed \ | IP=${DRY_RUN:=$(lxc-attach $ID -- hostname -I)} | ||||||
| 		-e 's/^\(\s*\)\('\''trusted_domains\)/\1'\''trusted_proxies'\'' =>\n\1array (\n\1\1'${GATE_LAN_IP}'\/32\n\1)\n\1\2/' \ | @ lxc-attach $ID -- sed -z -i \ | ||||||
| 		-i /var/www/nextcloud/config/config.php" | 	-e "s/\(trusted_domains[^)]*\)/\1  2 => '${IP/ *}',\n  /" \ | ||||||
|  | 	/var/www/nextcloud/config/config.php | ||||||
| 
 | 
 | ||||||
| echo "# Copying assets..." | echo "# Copying assets..." | ||||||
| @ pct-push-r $ID ./assets / | @ pct-push-r $ID ./assets / | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user