mirror of
				https://git.tt-rss.org/fox/ttrss-docker-compose
				synced 2025-11-04 03:04:14 +01:00 
			
		
		
		
	only create app user if it doesn't exist
This commit is contained in:
		
							parent
							
								
									e9563c4a87
								
							
						
					
					
						commit
						efd85e33a4
					
				
					 2 changed files with 8 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -5,8 +5,10 @@ while ! pg_isready -h $DB_HOST -U $DB_USER; do
 | 
			
		|||
	sleep 3
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
addgroup -g $OWNER_GID app
 | 
			
		||||
adduser -D -h /var/www/html -G app -u $OWNER_UID app
 | 
			
		||||
if ! id app; then
 | 
			
		||||
	addgroup -g $OWNER_GID app
 | 
			
		||||
	adduser -D -h /var/www/html -G app -u $OWNER_UID app
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
DST_DIR=/var/www/html/tt-rss
 | 
			
		||||
SRC_REPO=https://git.tt-rss.org/fox/tt-rss.git
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,8 +3,10 @@
 | 
			
		|||
# wait for the app container to delete .app_is_ready and perform rsync, etc.
 | 
			
		||||
sleep 30
 | 
			
		||||
 | 
			
		||||
addgroup -g $OWNER_GID app
 | 
			
		||||
adduser -D -h /var/www/html -G app -u $OWNER_UID app
 | 
			
		||||
if ! id app; then
 | 
			
		||||
	addgroup -g $OWNER_GID app
 | 
			
		||||
	adduser -D -h /var/www/html -G app -u $OWNER_UID app
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
while ! pg_isready -h $DB_HOST -U $DB_USER; do
 | 
			
		||||
	echo waiting until $DB_HOST is ready...
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue