From f2c3595e93c6fe2b439155a83865d12f0c8778a7 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Wed, 19 May 2021 00:21:30 +0200 Subject: [PATCH] add arch gitea install --- distros/arch/scripts/gitea_install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 distros/arch/scripts/gitea_install.sh diff --git a/distros/arch/scripts/gitea_install.sh b/distros/arch/scripts/gitea_install.sh new file mode 100644 index 0000000..36e70eb --- /dev/null +++ b/distros/arch/scripts/gitea_install.sh @@ -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