Added an option to install on rocky linux

This commit is contained in:
root 2024-10-30 23:10:46 +02:00
parent b0ced34e56
commit a596aeb5a7

View File

@ -2,17 +2,27 @@ all:
echo OK
install: install-dependencies-debian create-user download-gitea create-directories install-gitea-binary install-systemd-service install-nginx
install-debian: install-dependencies-debian create-user-debian download-gitea create-directories install-gitea-binary install-systemd-service install-nginx-debian
install-rocky: install-dependencies-rocky create-user-rocky download-gitea create-directories install-gitea-binary install-systemd-service install-nginx-rocky
install-dependencies-debian:
apt -y install git vim bash-completion jq
apt -y install mariadb-server
git --version
create-user:
install-dependencies-rocky:
dnf -y install git vim bash-completion jq
dnf -y install mariadb-server
git --version
create-user-debian:
adduser --system --shell /bin/bash --gecos 'Git Version Control' \
--group --disabled-password --home /home/git git
create-user-rocky:
adduser --system --shell /bin/bash -d /home/git git
download-gitea:
bash download-gitea.sh
@ -63,7 +73,10 @@ status:
systemctl status gitea --no-pager
install-nginx:
install-nginx-debian:
apt -y install nginx
install-nginx-rocky:
dnf -y install nginx