aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-08-31 17:10:07 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-08-31 17:10:07 +0200
commit66b54db812b01f5b944b0e5694a1473bdbcbaf32 (patch)
tree177d8c6120c8df5e5a63162417258e1522951c11 /deploy.sh
downloadcgit-config-master.tar.gz
cgit-config-master.zip
Initial commitHEADmaster
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
new file mode 100755
index 0000000..6db7961
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,16 @@
1#!/bin/sh
2
3# Usage: deploy [hostname]
4# If no hostname is provided, push to localhost.
5# Assumes Alpine Linux + Lighttpd default directory structure.
6
7if [ -n "$1" ]; then
8 host="scp://$1/"
9 cp=scp
10else
11 host=""
12 cp=cp
13fi
14
15$cp cgitrc "$host"/etc/
16$cp -r custom "$host"/usr/share/webapps/cgit/

Generated with cgit - Back to sebastiano.tronto.net