diff options
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/ | ||
