mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
13 lines
371 B
Bash
13 lines
371 B
Bash
|
#!/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
|