add arch gitea install
This commit is contained in:
parent
0865333869
commit
f2c3595e93
9
distros/arch/scripts/gitea_install.sh
Normal file
9
distros/arch/scripts/gitea_install.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user