Dockerfiles/hexo/bootstrap.sh

14 lines
257 B
Bash
Raw Normal View History

2016-11-11 10:33:18 +00:00
#! /bin/bash
2016-12-01 03:51:10 +00:00
git config --global user.email $GIT_EMAIL
git config --global user.name $GIT_NAME
if [ "$1" = "server" ]; then
2016-11-11 10:33:18 +00:00
# start hexo server
2016-11-30 12:47:38 +00:00
echo "starting hexo..."
2016-11-11 10:33:18 +00:00
hexo server
else
# do nothing, just wait
while true; do sleep 1000; done
fi