From 361cecee3636036625a26e29811a37ce5b808580 Mon Sep 17 00:00:00 2001 From: Ahmed Date: Wed, 17 Jun 2026 18:43:06 +0300 Subject: fix: style to match gumx.cc --- hooks/post-receive | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'hooks/post-receive') diff --git a/hooks/post-receive b/hooks/post-receive index 051bd55..1240593 100644 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -5,4 +5,23 @@ WEBROOT=/var/www/coffee.gumx.cc mkdir -p "$WEBROOT/fonts" cp "$WORK/ccc.html" "$WEBROOT/index.html" rsync -rlptD "$WORK/fonts/" "$WEBROOT/fonts/" 2>/dev/null || true +python3 - "$WEBROOT/index.html" <<'EOF' +import sys +p = sys.argv[1] +html = open(p).read() +footer = ( + '' +) +open(p, 'w').write(html.replace('', footer + '\n')) +EOF echo "ccc deployed to coffee.gumx.cc" -- cgit v1.2.3