mirror of
https://github.com/luzifer-docker/mdwiki.git
synced 2024-09-18 19:22:55 +00:00
10 lines
157 B
Bash
Executable File
10 lines
157 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
if [ "${1:-}" = 'serve' ]; then
|
|
cp /usr/src/mdwiki/mdwiki.html /data/index.html
|
|
exec python -m http.server 80
|
|
fi
|
|
|
|
exec "$@"
|