15 lines
		
	
	
		
			382 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			382 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
set -eo pipefail
 | 
						|
 | 
						|
test -d admin && chmod -rx admin && mv admin .admin
 | 
						|
 | 
						|
# If MANTIS_ENABLE_ADMIN is set to , then enable 'admin' folder
 | 
						|
if [ ! -z "$MANTIS_ENABLE_ADMIN" ] && [ "$MANTIS_ENABLE_ADMIN" -ne "0" ]; then
 | 
						|
  test -d .admin && mv .admin admin && chmod +rx admin
 | 
						|
fi
 | 
						|
 | 
						|
cp -rv extra_plugins/* plugins || true # its fine if the directory is empty
 | 
						|
 | 
						|
apache2-foreground
 |