Dockerfiles/hugo/bootstrap.sh
2019-11-23 20:28:15 +08:00

9 lines
124 B
Bash
Executable File

#!/bin/sh
# init hugo if dir is empty
if ! [ "$(ls -A /blog )" ]; then
hugo new site /blog
fi
hugo server --bind 0.0.0.0