mirror of
				https://git.tt-rss.org/fox/ttrss-docker-compose
				synced 2025-11-04 09:54:13 +01:00 
			
		
		
		
	always overvwrite config.php with bundled one on startup
This commit is contained in:
		
							parent
							
								
									2e13396bd7
								
							
						
					
					
						commit
						75d1291976
					
				
					 1 changed files with 1 additions and 9 deletions
				
			
		| 
						 | 
					@ -72,15 +72,7 @@ elif ! $PSQL -c 'select * from ttrss_version'; then
 | 
				
			||||||
	$PSQL < /var/www/html/tt-rss/schema/ttrss_schema_pgsql.sql
 | 
						$PSQL < /var/www/html/tt-rss/schema/ttrss_schema_pgsql.sql
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ ! -s $DST_DIR/config.php ]; then
 | 
					 | 
				
			||||||
cp ${SCRIPT_ROOT}/config.docker.php $DST_DIR/config.php
 | 
					cp ${SCRIPT_ROOT}/config.docker.php $DST_DIR/config.php
 | 
				
			||||||
else
 | 
					 | 
				
			||||||
	if ! egrep -q 'SELF_URL_PATH.*getenv' $DST_DIR/config.php; then
 | 
					 | 
				
			||||||
		echo -e "\nWARNING: you're using old-style config.php, overrides via .env will not work.\n" >/dev/stderr
 | 
					 | 
				
			||||||
	else
 | 
					 | 
				
			||||||
		cp ${SCRIPT_ROOT}/config.docker.php $DST_DIR/config.php
 | 
					 | 
				
			||||||
	fi
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# this was previously generated
 | 
					# this was previously generated
 | 
				
			||||||
rm -f $DST_DIR/config.php.bak
 | 
					rm -f $DST_DIR/config.php.bak
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue