#!/bin/bash

cd /var/www/

find .

# What this image calls html, we call htdocs
if [ ! -f htdocs ]; then
    ln -s html htdocs
fi

# Install Composer dependencies
cd htdocs
composer install
cd ..

# Move over the settings file.
cp deploy/settings-docker.inc.php htdocs/includes/settings.inc.php

#!/bin/bash

cd /var/www/

# What this image calls html, we call htdocs
if [ -f html ]; then
    rmdir html
    ln -s htdocs html
fi

# Install Composer dependencies
composer install

# Move over the settings file.
cp deploy/settings-docker.inc.php htdocs/includes/settings.inc.php

Delete /var/www/html if it exists
Delete /var/www/html if it exists

We use /var/www/htdocs instead.
