diff --git a/Makefile b/Makefile index 6e29e77..1378201 100644 --- a/Makefile +++ b/Makefile @@ -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 +