aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
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