aboutsummaryrefslogtreecommitdiffstats
path: root/hooks/post-receive
diff options
context:
space:
mode:
authorAhmed <git@gumx.cc>2026-06-18 00:39:02 +0300
committerAhmed <git@gumx.cc>2026-06-18 00:39:02 +0300
commitd35f4e8113a2b20eb80133b106c10f9f1ef089cd (patch)
tree6f48b3403c13b566477bb25cc9bbbccaebcf320e /hooks/post-receive
parent7936d6b77ec99ca407864554a4643f6801ee8464 (diff)
fix: hook issue
Diffstat (limited to 'hooks/post-receive')
-rw-r--r--hooks/post-receive46
1 files changed, 46 insertions, 0 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index 4734e3c..f1f49d0 100644
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -3,4 +3,50 @@ set -e
cd /home/git/build/ubergeek
bash build.sh
rsync -rlptD --delete output/ /var/www/ubergeek.gumx.cc/
+cat > /var/www/ubergeek.gumx.cc/404.html <<'HTMLEOF'
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<link rel="icon" type="image/svg+xml" href="/favicon.svg">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+<title>404 not found</title>
+<style>
+@font-face { font-family: "Kawkab Mono"; src: url(/fonts/KawkabMono-Regular.woff2); font-weight: normal; }
+@font-face { font-family: "Kawkab Mono"; src: url(/fonts/KawkabMono-Bold.woff2); font-weight: bold; }
+* { unicode-bidi: plaintext; box-sizing: border-box; }
+html { color: black; background-color: white; }
+body { font-family: "Kawkab Mono"; font-size: 16px; line-height: 1.4; margin: 0; padding: 4rem 0; min-height: 100%; overflow-wrap: break-word; }
+main, header, footer { max-width: 800px; margin-inline: auto; padding: 0 2rem; }
+h1, header, footer { text-align: center; }
+hr { border: none; border-top: thin solid; margin: 1.25rem 0; }
+header { margin-bottom: 1em; }
+footer { margin-top: 3em; }
+a { color: inherit; }
+@media (max-width: 600px) { body { font-size: 0.9em; } }
+@media (prefers-color-scheme: dark) { html { filter: invert(1); } img { filter: invert(1); } }
+</style>
+</head>
+<body>
+<header>
+<h1><a href="https://gumx.cc">gumx</a></h1>
+</header>
+<main>
+<p>404 not found.</p>
+</main>
+<footer>
+<hr>
+<a href="https://twt.gumx.cc">twt</a> /
+<a href="https://git.gumx.cc">git</a> /
+<a href="https://mail.gumx.cc">mail</a> /
+<a href="https://irc.gumx.cc">irc</a> /
+<a href="https://files.gumx.cc">files</a> /
+<a href="https://vpn.gumx.cc">vpn</a> /
+<a href="https://pgp.gumx.cc">pgp</a> /
+<a href="https://demo.gumx.cc">demo</a> /
+<a href="https://wk.fo">wk.fo</a>
+</footer>
+</body>
+</html>
+HTMLEOF
echo "ubergeek deployed"