mirror of
				https://github.com/linuxserver/docker-heimdall.git
				synced 2025-11-01 05:27:38 +09:00 
			
		
		
		
	Merge pull request #138 from linuxserver/quiet-migration
only run migration if conf exists
This commit is contained in:
		| @@ -5,7 +5,7 @@ DEFAULT_CONF="/config/nginx/site-confs/default.conf" | ||||
| OLD_ROOT="root /var/www/localhost/heimdall/public;" | ||||
| NEW_ROOT="root /app/www/public;" | ||||
|  | ||||
| if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}" 2>/dev/null; then | ||||
| 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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user