mirror of
				https://github.com/linuxserver/docker-heimdall.git
				synced 2025-10-31 21:17:39 +09:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			365 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			365 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #!/usr/bin/with-contenv bash
 | |
| 
 | |
| DEFAULT_CONF="/config/nginx/site-confs/default.conf"
 | |
| OLD_ROOT="root /var/www/localhost/heimdall/public;"
 | |
| NEW_ROOT="root /app/www/public;"
 | |
| 
 | |
| if [[ -f "${DEFAULT_CONF}" ]] && grep -q "${OLD_ROOT}" "${DEFAULT_CONF}" 2>/dev/null; then
 | |
|     echo "updating root in ${DEFAULT_CONF}"
 | |
|     sed -i "s|${OLD_ROOT}|${NEW_ROOT}|" "${DEFAULT_CONF}"
 | |
| fi
 |