Dockerfiles/hugo/bootstrap.sh

9 lines
124 B
Bash
Raw Permalink Normal View History

2019-11-23 12:28:15 +00:00
#!/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