aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
blob: 6db79614febdd694a545b5b26c27c5d53c3a84a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# Usage: deploy [hostname]
# If no hostname is provided, push to localhost.
# Assumes Alpine Linux + Lighttpd default directory structure.

if [ -n "$1" ]; then
	host="scp://$1/"
	cp=scp
else
	host=""
	cp=cp
fi

$cp cgitrc "$host"/etc/
$cp -r custom "$host"/usr/share/webapps/cgit/

Generated with cgit - Back to sebastiano.tronto.net