From d7c60bf93fd956dd1addec9cf11a8cadecd21095 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Fri, 31 Jan 2020 07:23:28 +0100 Subject: [PATCH] arch gitea setup start --- distros/arch/scripts/gitea.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 distros/arch/scripts/gitea.md diff --git a/distros/arch/scripts/gitea.md b/distros/arch/scripts/gitea.md new file mode 100644 index 0000000..36e70eb --- /dev/null +++ b/distros/arch/scripts/gitea.md @@ -0,0 +1,9 @@ +#!/bin/sh +pacman -S gitea postgresql +sudo su postgres -c 'initdb -D /var/lib/postgres/data' +sudo systemctl start postgresql +sudo su postgres -c 'createuser -P gitea' +sudo su postgres -c 'createdb -O gitea gitea' +sudo sed -i 's/mysql/postgres/' /etc/gitea/app.ini +sudo sed -i 's/root/gitea/' /etc/gitea/app.ini +sudo systemctl start gitea