From 3ec9d8afe0f90f77239db0484a125f0747139a70 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sat, 11 Feb 2023 22:26:11 -0500 Subject: finish self-updating container --- clone-generate-and-serve.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'clone-generate-and-serve.sh') 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;" -- cgit v1.2.3