57 lines
1.0 KiB
Makefile
57 lines
1.0 KiB
Makefile
all:
|
|
echo OK
|
|
|
|
install-dependencies-debian:
|
|
apt -y install git vim bash-completion jq
|
|
apt -y install mariadb-server
|
|
git --version
|
|
|
|
create-user:
|
|
adduser --system --shell /bin/bash --gecos 'Git Version Control' \
|
|
--group --disabled-password --home /home/git git
|
|
|
|
download-gitea:
|
|
bash download-gitea.sh
|
|
|
|
|
|
install-gitea-binary:
|
|
cp -vf gitea-linux-amd64 /usr/local/bin/gitea
|
|
gitea --version
|
|
|
|
create-directories:
|
|
mkdir -p /etc/gitea /var/lib/gitea/{custom,data,indexers,public,log}
|
|
chown git:git /var/lib/gitea/{data,indexers,log}
|
|
chmod 750 /var/lib/gitea/{data,indexers,log}
|
|
chown root:git /etc/gitea
|
|
chmod 770 /etc/gitea
|
|
|
|
install-systemd-service:
|
|
cp -vf gitea.service /etc/systemd/system/gitea.service
|
|
|
|
|
|
enable-service:
|
|
systemctl daemon-reload
|
|
systemctl enable gitea
|
|
|
|
start:
|
|
systemctl start gitea
|
|
|
|
restart:
|
|
systemctl restart gitea
|
|
|
|
stop:
|
|
systemctl stop gitea
|
|
|
|
disable-service:
|
|
systemctl daemon-reload
|
|
systemctl disable gitea
|
|
|
|
status:
|
|
systemctl status gitea --no-pager
|
|
|
|
|
|
install-nginx:
|
|
apt -y install nginx
|
|
|
|
|