#!/bin/bash # Docker entrypoint cd `dirname "$0"` . ./config.sh # Creating directory and set permissions mkdir -p ${BASEDIR}/logs chown -R www-data:www-data ${BASEDIR}/shared ${BASEDIR}/PKI chown -R ${SYNCHRO_USER}:www-data ${BASEDIR}/submission ${BASEDIR}/logs ${BASEDIR}/out chmod 770 ${BASEDIR}/submission # Update database profile cat < ${BASEDIR}/onyx/db/docker.profile.php && sampledocker01