OCSInventory-Docker-Image/2.3.1/scripts/run.sh
Valentin Deville 297bfe1e5d
Add 2.3.1
2017-03-15 16:13:00 +01:00

10 lines
232 B
Bash

#!/bin/bash
if [ ! -d "$APACHE_RUN_DIR" ]; then
mkdir "$APACHE_RUN_DIR"
chown $APACHE_RUN_USER:$APACHE_RUN_GROUP "$APACHE_RUN_DIR"
fi
if [ -f "$APACHE_PID_FILE" ]; then
rm "$APACHE_PID_FILE"
fi
/usr/sbin/apache2ctl -D FOREGROUND