Added an option to install on rocky linux
This commit is contained in:
parent
b0ced34e56
commit
a596aeb5a7
19
Makefile
19
Makefile
@ -2,17 +2,27 @@ all:
|
|||||||
echo OK
|
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:
|
install-dependencies-debian:
|
||||||
apt -y install git vim bash-completion jq
|
apt -y install git vim bash-completion jq
|
||||||
apt -y install mariadb-server
|
apt -y install mariadb-server
|
||||||
git --version
|
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' \
|
adduser --system --shell /bin/bash --gecos 'Git Version Control' \
|
||||||
--group --disabled-password --home /home/git git
|
--group --disabled-password --home /home/git git
|
||||||
|
|
||||||
|
create-user-rocky:
|
||||||
|
adduser --system --shell /bin/bash -d /home/git git
|
||||||
|
|
||||||
download-gitea:
|
download-gitea:
|
||||||
bash download-gitea.sh
|
bash download-gitea.sh
|
||||||
|
|
||||||
@ -63,7 +73,10 @@ status:
|
|||||||
systemctl status gitea --no-pager
|
systemctl status gitea --no-pager
|
||||||
|
|
||||||
|
|
||||||
install-nginx:
|
install-nginx-debian:
|
||||||
apt -y install nginx
|
apt -y install nginx
|
||||||
|
|
||||||
|
install-nginx-rocky:
|
||||||
|
dnf -y install nginx
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user