mirror of
https://git.coolaj86.com/coolaj86/gitea-installer.sh.git
synced 2024-12-21 22:06:19 +00:00
b9307b6531
Update to v1.4.0 and show customization notes.
32 lines
1.3 KiB
Bash
32 lines
1.3 KiB
Bash
#!/bin/bash
|
|
|
|
VER=1.4.0
|
|
|
|
# wget -O install-gitea.bash https://git.coolaj86.com/coolaj86/gitea-installer/raw/master/install.bash; bash install-gitea.bash
|
|
# or
|
|
# wget -O - https://git.coolaj86.com/coolaj86/gitea-installer/raw/master/install.bash | bash
|
|
|
|
# Create a 'gitea' user and group with the home /opt/gitea, no password (because it's a system user) and no GECOS
|
|
sudo adduser gitea --home /opt/gitea --disabled-password --gecos ''
|
|
|
|
# Make some other potentially useful directories for that user/group
|
|
sudo mkdir -p /opt/gitea/ /var/log/gitea
|
|
sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea
|
|
|
|
# Download and install gitea
|
|
sudo wget -O "/opt/gitea/gitea https://dl.gitea.io/gitea/$VER/gitea-$VER-linux-amd64"
|
|
sudo chmod +x /opt/gitea/gitea
|
|
|
|
# Download and install the gitea.service for systemd
|
|
sudo wget -O /etc/systemd/system/gitea.service https://git.coolaj86.com/coolaj86/gitea-installer.sh/raw/master/dist/etc/systemd/system/gitea.service
|
|
|
|
# Start gitea
|
|
sudo systemctl restart gitea
|
|
|
|
echo ""
|
|
echo "Please visit http://localhost:3000/ now to finish installing gitea"
|
|
echo ""
|
|
echo "You may customize gitea"
|
|
echo " templates can be seen at https://github.com/go-gitea/gitea/tree/v$VER/templates"
|
|
echo " app.ini.sample can be seen at https://github.com/go-gitea/gitea/blob/v$VER/custom/conf/app.ini.sample"
|