mirror of
				https://github.com/linuxserver/docker-heimdall.git
				synced 2025-11-04 06:52:33 +09:00 
			
		
		
		
	copy env from example, generate appkey
This commit is contained in:
		@@ -4,12 +4,6 @@
 | 
				
			|||||||
mkdir -p \
 | 
					mkdir -p \
 | 
				
			||||||
	/config/www/{backgrounds,icons,avatars,SupportedApps}
 | 
						/config/www/{backgrounds,icons,avatars,SupportedApps}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# copy .env if not exists
 | 
					 | 
				
			||||||
[[ ! -f /config/www/.env ]] && \
 | 
					 | 
				
			||||||
  cp /var/www/localhost/heimdall/.env /config/www/.env
 | 
					 | 
				
			||||||
# set queue driver to database
 | 
					 | 
				
			||||||
sed -i 's/QUEUE_DRIVER=sync/QUEUE_DRIVER=database/' /config/www/.env
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# create symlinks
 | 
					# create symlinks
 | 
				
			||||||
 | 
					
 | 
				
			||||||
symlinks=( \
 | 
					symlinks=( \
 | 
				
			||||||
@@ -26,6 +20,13 @@ do
 | 
				
			|||||||
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
 | 
					[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# copy .env if not exists
 | 
				
			||||||
 | 
					[[ ! -f /config/www/.env ]] && \
 | 
				
			||||||
 | 
					  cp /var/www/localhost/heimdall/.env.example /config/www/.env && \
 | 
				
			||||||
 | 
					  php /var/www/html/artisan key:generate
 | 
				
			||||||
 | 
					# set queue driver to database
 | 
				
			||||||
 | 
					sed -i 's/QUEUE_DRIVER=sync/QUEUE_DRIVER=database/' /config/www/.env
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# permissions
 | 
					# permissions
 | 
				
			||||||
chown -R abc:abc \
 | 
					chown -R abc:abc \
 | 
				
			||||||
	/config \
 | 
						/config \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user