| 
				
			 | 
			
			
				@@ -31,6 +31,12 @@ function android_update_apps { 
			 | 
		
	
		
			
			| 
				31
			 | 
			
				31
			 | 
			
			
				         detect_installable_apps 
			 | 
		
	
		
			
			| 
				32
			 | 
			
				32
			 | 
			
			
				     fi 
			 | 
		
	
		
			
			| 
				33
			 | 
			
				33
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				
			 | 
			
				34
			 | 
			
			
				+    # Create a self-signed cert if needed 
			 | 
		
	
		
			
			| 
				
			 | 
			
				35
			 | 
			
			
				+    # The FreedomBox app assumes a self-signed cert 
			 | 
		
	
		
			
			| 
				
			 | 
			
				36
			 | 
			
			
				+    if [ ! -f "/etc/ssl/certs/${local_hostname}.crt" ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				37
			 | 
			
			
				+        install_web_local_user_interface 
			 | 
		
	
		
			
			| 
				
			 | 
			
				38
			 | 
			
			
				+    fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				39
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				34
			 | 
			
				40
			 | 
			
			
				     local_hostname=$(grep 'host-name' /etc/avahi/avahi-daemon.conf | awk -F '=' '{print $2}').local 
			 | 
		
	
		
			
			| 
				35
			 | 
			
				41
			 | 
			
			
				     plinth_api="/var/www/${local_hostname}/htdocs/plinth/api/1" 
			 | 
		
	
		
			
			| 
				36
			 | 
			
				42
			 | 
			
			
				  
			 |