12 lines
229 B
Bash
12 lines
229 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# If FLAG is set, write it to /var/www/html/flag.txt
|
|
if [ -n "$FLAG" ]; then
|
|
echo "$FLAG" > /var/www/html/flag.txt
|
|
chmod 644 /var/www/html/flag.txt
|
|
fi
|
|
|
|
# Start Apache in foreground
|
|
exec apache2-foreground
|