diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-08-31 17:10:07 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-08-31 17:10:07 +0200 |
| commit | 66b54db812b01f5b944b0e5694a1473bdbcbaf32 (patch) | |
| tree | 177d8c6120c8df5e5a63162417258e1522951c11 /deploy.sh | |
| download | cgit-config-master.tar.gz cgit-config-master.zip | |
Diffstat (limited to 'deploy.sh')
| -rwxr-xr-x | deploy.sh | 16 |
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 | |||
| 7 | if [ -n "$1" ]; then | ||
| 8 | host="scp://$1/" | ||
| 9 | cp=scp | ||
| 10 | else | ||
| 11 | host="" | ||
| 12 | cp=cp | ||
| 13 | fi | ||
| 14 | |||
| 15 | $cp cgitrc "$host"/etc/ | ||
| 16 | $cp -r custom "$host"/usr/share/webapps/cgit/ | ||
