Changes

From SME Server
Jump to navigationJump to search
156 bytes added ,  01:18, 11 November 2023
Line 1: Line 1:  
====Installation====
 
====Installation====
 
<tabs container=""><tab name="For SME10">
 
<tabs container=""><tab name="For SME10">
This is how I installed the latest version of Gitea (https://gitea.io) on my smeserver build box (this is running smeserver v10.1 in serveronly)  
+
This is how I installed the latest version of Gitea (https://gitea.io) on my smeserver build box (this is running smeserver v10.1 in serveronly)
 +
 
 +
This will work for a Centos 7 build as well.
    
{{Note box|There is a smeserver contrib for Git and gitweb, but I did not use these as they only provide older versions of git, whereas we wanted the latest versions for use with gitea}}
 
{{Note box|There is a smeserver contrib for Git and gitweb, but I did not use these as they only provide older versions of git, whereas we wanted the latest versions for use with gitea}}
Line 21: Line 23:  
chown root:git /etc/gitea
 
chown root:git /etc/gitea
 
chmod 770 /etc/gitea
 
chmod 770 /etc/gitea
 
+
</syntaxhighlight>
</syntaxhighlight>Now we want to set it up as a service and ensure that it will be restarted on reboot.<syntaxhighlight lang="bash">
+
Now we want to set it up as a service and ensure that it will be restarted on reboot.
config set gitea service status enabled
+
<syntaxhighlight lang="bash">
 
wget https://raw.githubusercontent.com/go-gitea/gitea/main/contrib/systemd/gitea.service -O /usr/lib/systemd/system/gitea.service
 
wget https://raw.githubusercontent.com/go-gitea/gitea/main/contrib/systemd/gitea.service -O /usr/lib/systemd/system/gitea.service
 
mkdir /usr/lib/systemd/system/gitea.service.d
 
mkdir /usr/lib/systemd/system/gitea.service.d
 +
</syntaxhighlight>
 +
The following is ONLY needed on an smeserver build
 +
<syntaxhighlight lang="bash">
 
cat <<EOT > /usr/lib/systemd/system/gitea.service.d/50koozali.conf
 
cat <<EOT > /usr/lib/systemd/system/gitea.service.d/50koozali.conf
 
[Install]
 
[Install]
 
WantedBy=sme-server.target
 
WantedBy=sme-server.target
 
EOT
 
EOT
 
+
config set gitea service status enabled
</syntaxhighlight>Now we setup gitea on your server<syntaxhighlight lang="bash">
+
</syntaxhighlight>
systemctl start gitea
+
Now we setup gitea on your server
</syntaxhighlight>Access the setup page via a browser http://<your-smeserver-IP>:3000
+
<syntaxhighlight lang="bash">
 +
systemctl enable --now gitea
 +
</syntaxhighlight>
 +
Access the setup page via a browser http://<your-smeserver-IP>:3000
    
I found it easiest to just use SQLite3 (built in to smeserver v10)
 
I found it easiest to just use SQLite3 (built in to smeserver v10)
381

edits

Navigation menu