1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-27 02:09:06 +02:00
dockerfiles/apacheds/docker-entrypoint.sh
2019-09-27 18:25:36 +08:00

13 lines
371 B
Bash
Executable File

#!/bin/sh
set -e
if ! [ -d ${APACHEDS_INSTANCE_DIR} ]; then
cp -r ${APACHEDS_DATA}-${APACHEDS_VERSION}/default ${APACHEDS_INSTANCE_DIR}
chown -R ${APACHEDS_USER}:${APACHEDS_GROUP} ${APACHEDS_INSTANCE_DIR}
fi
gosu ${APACHEDS_USER} /opt/apacheds-${APACHEDS_VERSION}/bin/apacheds start ${APACHEDS_INSTANCE}
tail -n 0 -f ${APACHEDS_INSTANCE_DIR}/log/apacheds.log