diff options
author | Julio Capote <jcapote@gmail.com> | 2023-02-12 03:26:11 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-02-12 03:26:11 +0000 |
commit | 3ec9d8afe0f90f77239db0484a125f0747139a70 (patch) | |
tree | 03add1c5abff9beefa3c38fbf88adce0065f7413 /clone-generate-and-serve.sh | |
parent | 198bd5ce59d698420c34052d4ea71950a686cf44 (diff) | |
download | capotej.com-3ec9d8afe0f90f77239db0484a125f0747139a70.tar.gz |
finish self-updating container
Diffstat (limited to '')
-rwxr-xr-x | clone-generate-and-serve.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/clone-generate-and-serve.sh b/clone-generate-and-serve.sh index 674a627..6031ba4 100755 --- a/clone-generate-and-serve.sh +++ b/clone-generate-and-serve.sh @@ -1,5 +1,14 @@ #!/bin/sh +set -eux + git clone https://git.capotej.com/capotej/capotej.com.git -cd capotej.com && hugo
\ No newline at end of file +cd capotej.com || exit 1 + +git submodule init +git submodule update + +hugo -v -d /usr/share/nginx/html + +nginx -g "daemon off;" |