arch gitea setup start

This commit is contained in:
Malin Freeborn 2020-01-31 07:23:28 +01:00
parent 54e4389325
commit d7c60bf93f
1 changed files with 9 additions and 0 deletions

View File

@ -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