vm: use yum proxy in TemplateVM by default (#590)
This commit is contained in:
		
							parent
							
								
									a528befbc4
								
							
						
					
					
						commit
						1a8682ace3
					
				| @ -37,7 +37,8 @@ start() | |||||||
| 	fi | 	fi | ||||||
| 
 | 
 | ||||||
| 	yum_proxy_setup=$(/usr/bin/xenstore-read qubes-service/yum-proxy-setup 2> /dev/null) | 	yum_proxy_setup=$(/usr/bin/xenstore-read qubes-service/yum-proxy-setup 2> /dev/null) | ||||||
| 	if [ "$yum_proxy_setup" != "0" ]; then |     type=$(/usr/bin/xenstore-read qubes_vm_type) | ||||||
|  | 	if [ "$yum_proxy_setup" != "0" ] || [ -z "$yum_proxy_setup" -a "$type" == "TemplateVM" ]; then | ||||||
| 		echo proxy=http://10.137.255.254:8082/ > /etc/yum.conf.d/qubes-proxy.conf | 		echo proxy=http://10.137.255.254:8082/ > /etc/yum.conf.d/qubes-proxy.conf | ||||||
| 	else | 	else | ||||||
| 		echo > /etc/yum.conf.d/qubes-proxy.conf | 		echo > /etc/yum.conf.d/qubes-proxy.conf | ||||||
|  | |||||||
| @ -4,7 +4,7 @@ | |||||||
| DEFAULT_ENABLED_NETVM="network-manager qubes-network qubes-update-check qubes-yum-proxy" | DEFAULT_ENABLED_NETVM="network-manager qubes-network qubes-update-check qubes-yum-proxy" | ||||||
| DEFAULT_ENABLED_PROXYVM="meminfo-writer qubes-network qubes-firewall qubes-netwatcher qubes-update-check" | DEFAULT_ENABLED_PROXYVM="meminfo-writer qubes-network qubes-firewall qubes-netwatcher qubes-update-check" | ||||||
| DEFAULT_ENABLED_APPVM="meminfo-writer cups qubes-update-check" | DEFAULT_ENABLED_APPVM="meminfo-writer cups qubes-update-check" | ||||||
| DEFAULT_ENABLED_TEMPLATEVM=$DEFAULT_ENABLED_APPVM | DEFAULT_ENABLED_TEMPLATEVM="$DEFAULT_ENABLED_APPVM yum-proxy-setup" | ||||||
| DEFAULT_ENABLED="meminfo-writer" | DEFAULT_ENABLED="meminfo-writer" | ||||||
| 
 | 
 | ||||||
| XS_READ=/usr/bin/xenstore-read | XS_READ=/usr/bin/xenstore-read | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marek Marczykowski
						Marek Marczykowski