1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/apacheds/docker-entrypoint.sh

13 lines
371 B
Bash
Raw Normal View History

2019-09-27 11:54:30 +02:00
#!/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