Merge pull request #8 from sameersbn/base-image-updates

Base image updates
This commit is contained in:
Sameer Naik
2015-10-04 14:16:13 +05:30
4 changed files with 2 additions and 18 deletions

View File

@@ -3,6 +3,7 @@ MAINTAINER Bitnami <containers@bitnami.com>
ENV BITNAMI_APP_NAME=apache \
BITNAMI_APP_USER=daemon \
BITNAMI_APP_DAEMON=httpd \
BITNAMI_APP_VERSION=2.4.12-4 \
BITNAMI_APP_DIR=$BITNAMI_PREFIX/apache2

View File

@@ -1,15 +0,0 @@
#!/bin/bash
if [ "${1:0:1}" = '-' ]; then
export EXTRA_OPTIONS="$@"
set --
elif [ "${1}" == "httpd" -o "${1}" == "$(which httpd)" ]; then
export EXTRA_OPTIONS="${@:2}"
set --
fi
if [ -n "${1}" ]; then
touch /etc/services.d/$BITNAMI_APP_NAME/down
fi
exec /init "$@"

View File

@@ -2,8 +2,6 @@
set -e
source $BITNAMI_PREFIX/bitnami-utils.sh
print_welcome_page
generate_conf_files
if [ ! "$(ls -A /app)" ]; then

View File

@@ -7,4 +7,4 @@ rm -f $BITNAMI_APP_DIR/logs/httpd.pid
mkdir -p $BITNAMI_APP_DIR/tmp
date '+%d%H%M%S' > $BITNAMI_APP_DIR/tmp/start
exec httpd -DFOREGROUND -f $BITNAMI_APP_DIR/conf/httpd.conf ${EXTRA_OPTIONS:+"$EXTRA_OPTIONS"}
exec $BITNAMI_APP_DAEMON -DFOREGROUND -f $BITNAMI_APP_DIR/conf/httpd.conf ${EXTRA_OPTIONS:+"$EXTRA_OPTIONS"}