mirror of
				https://github.com/BookStackApp/BookStack.git
				synced 2025-10-29 16:09:29 +03:00 
			
		
		
		
	Migrations run without force could fail startup in certain environment conditions (when testing production env). Also updated paths permission handling to update more needed locations.
		
			
				
	
	
		
			16 lines
		
	
	
		
			260 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			260 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| set -e
 | |
| 
 | |
| env
 | |
| 
 | |
| if [[ -n "$1" ]]; then
 | |
|     exec "$@"
 | |
| else
 | |
|     composer install
 | |
|     wait-for-it db:3306 -t 45
 | |
|     php artisan migrate --database=mysql --force
 | |
|     chown -R www-data storage public/uploads bootstrap/cache
 | |
|     exec apache2-foreground
 | |
| fi
 |