Chg: Line Break & Fix: many fixes & Chg: README

This commit is contained in:
2025-10-31 19:04:16 +09:00
parent 0e6df50a7f
commit 283df57c20
10 changed files with 171 additions and 105 deletions
+18
View File
@@ -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