« Gitea » : différence entre les versions
Apparence
Page créée avec « = Install on Ubuntu = == [https://docs.gitea.com/installation/database-prep#mysqlmariadb Database Preparation] == <kode lang='mariadb'> create database gitea character set 'utf8mb4' collate 'utf8mb4_general_ci'; create user 'gitea'@'localhost' identified by '[PWD]'; grant all privileges on gitea.* to 'gitea'@'localhost'; flush privileges; </kode> == [https://docs.gitea.com/installation/install-from-binary Installation from binary] == <kode lang='bash'> # create... » |
Aucun résumé des modifications |
||
Ligne 53 : | Ligne 53 : | ||
[Install] | [Install] | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
</ | </filebox> | ||
== [https://wiki.bananeatomic.fr/wiki/Ufw#Applications_custom Create an UFW application] == | == [https://wiki.bananeatomic.fr/wiki/Ufw#Applications_custom Create an UFW application] == |
Version du 16 octobre 2023 à 11:18
Install on Ubuntu
Database Preparation
create database gitea character set 'utf8mb4' collate 'utf8mb4_general_ci';
create user 'gitea'@'localhost' identified by '[PWD]';
grant all privileges on gitea.* to 'gitea'@'localhost';
flush privileges;
|
Installation from binary
# create a user to run Gitea
sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/gitea gitea
# create required directory structure
mkdir -p /var/lib/gitea/{custom,data,log}
chown -R gitea:gitea /var/lib/gitea/
chmod -R 750 /var/lib/gitea/
mkdir /etc/gitea
chown root:gitea /etc/gitea
chmod 770 /etc/gitea
wget https://dl.gitea.com/gitea/1.20.5/gitea-1.20.5-linux-arm64 -O gitea
sudo mv gitea /usr/local/bin
sudo chown root:root /usr/local/bin/gitea
sudo chmod 755 /usr/local/bin/gitea
|
Run as service
/etc/systemd/system/gitea.service |