aboutsummaryrefslogtreecommitdiff
path: root/rawhost.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rawhost.sh')
-rw-r--r--rawhost.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/rawhost.sh b/rawhost.sh
new file mode 100644
index 0000000..f846266
--- /dev/null
+++ b/rawhost.sh
@@ -0,0 +1,28 @@
+apk add --no-cache gcc make curl linux-headers musl-dev zlib-dev libressl-dev libintl musl-libintl fcgiwrap nginx gitolite
+apk update && apk update
+
+tar -xvf cgit-1.3.tar.xz
+cd ~/cgit-1.3
+make get-git
+
+DESTDIR=pkg NO_REGEX=NeedsStartEnd make install
+
+cd ~/cgit-1.3/pkg
+tar -czvf cgit-1.3.tar.gz .
+
+cp ~/cgit-1.3/pkg/cgit-1.3.tar.gz /cgit-1.3.tar.gz
+
+cd /
+tar -xvf /cgit-1.3.tar.gz
+
+scp cgitrc git.nelin.dk:/etc/
+scp nginx.conf git.nelin.dk:/etc/nginx/http.d/
+scp css_variable_colors.sh git.nelin.dk:/
+
+scp about.html git.nelin.dk:/var/www/htdocs/cgit/
+scp cgit.png git.nelin.dk:/var/www/htdocs/cgit/logo.png
+scp favicon.ico git.nelin.dk:/var/www/htdocs/cgit/
+scp everforest.css git.nelin.dk:/var/www/htdocs/cgit/
+sh css_variable_colors.sh
+
+chmod 750 /var/lib/git