Add ALLOW_CORS parameter
This commit is contained in:
5
run.sh
5
run.sh
@@ -69,6 +69,11 @@ if [ "$1" = "run" ]; then
|
||||
# Fix postgres data privileges
|
||||
chown postgres:postgres /var/lib/postgresql -R
|
||||
|
||||
# Configure Apache CORS
|
||||
if [ "$ALLOW_CORS" == "1" ]; then
|
||||
echo "export APACHE_ARGUMENTS='-D ALLOW_CORS'" >> /etc/apache2/envvars
|
||||
fi
|
||||
|
||||
# Initialize PostgreSQL and Apache
|
||||
CreatePostgressqlConfig
|
||||
service postgresql start
|
||||
|
||||
Reference in New Issue
Block a user