Chg: Line Break & Fix: many fixes & Chg: README
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
APP_DIR="/var/www/html"
|
||||
SRC_DIR="/usr/src/app"
|
||||
INIT_FLAG="$APP_DIR/.initialized"
|
||||
|
||||
if [ ! -f "$INIT_FLAG" ]; then
|
||||
echo "[Init] Copying initial files to $APP_DIR..."
|
||||
cp -rT "$SRC_DIR" "$APP_DIR"
|
||||
chown -R www-data:www-data "$APP_DIR"
|
||||
touch "$INIT_FLAG"
|
||||
else
|
||||
echo "[Init] Already initialized."
|
||||
fi
|
||||
|
||||
exec apache2-foreground
|
||||
|
||||
Reference in New Issue
Block a user