mirror of
				https://git.tt-rss.org/fox/ttrss-docker-compose
				synced 2025-11-04 09:44:11 +01:00 
			
		
		
		
	emit a warning if old-style config.php is detected
This commit is contained in:
		
							parent
							
								
									be80ae2fe6
								
							
						
					
					
						commit
						16801071fc
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
#!/bin/sh -ex
 | 
			
		||||
#!/bin/sh -e
 | 
			
		||||
 | 
			
		||||
while ! pg_isready -h $DB_HOST -U $DB_USER; do
 | 
			
		||||
	echo waiting until $DB_HOST is ready...
 | 
			
		||||
| 
						 | 
				
			
			@ -76,6 +76,9 @@ if [ ! -s $DST_DIR/config.php ]; then
 | 
			
		|||
	cat >> $DST_DIR/config.php << EOF
 | 
			
		||||
		define('NGINX_XACCEL_PREFIX', '/tt-rss');
 | 
			
		||||
EOF
 | 
			
		||||
else
 | 
			
		||||
	egrep 'SELF_URL_PATH.*getenv' $DST_DIR/config.php || \
 | 
			
		||||
		echo -e "\nWARNING: you're using old-style config.php, overrides via .env will not work.\n" >/dev/stderr
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# this was previously generated
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue