From 66b54db812b01f5b944b0e5694a1473bdbcbaf32 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 31 Aug 2026 17:10:07 +0200 Subject: Initial commit --- deploy.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 deploy.sh (limited to 'deploy.sh') diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..6db7961 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,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/ -- cgit v1.3