Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5dd4492822 | |||
| 0ebd1b0229 | |||
| a6fb133216 | |||
| fc6ce6f472 |
2
Makefile
2
Makefile
@@ -2,7 +2,7 @@ NAME = netoik-git
|
|||||||
VERSION = $(shell git describe --abbrev=0)
|
VERSION = $(shell git describe --abbrev=0)
|
||||||
RELEASE = $(shell git rev-parse --short HEAD)
|
RELEASE = $(shell git rev-parse --short HEAD)
|
||||||
ARCH = noarch
|
ARCH = noarch
|
||||||
OWNER = samuel
|
OWNER = netoik
|
||||||
SUMMARY = "Netoïk Git server"
|
SUMMARY = "Netoïk Git server"
|
||||||
LICENSE = "MIT"
|
LICENSE = "MIT"
|
||||||
URL = "https://git.netoik.io/$(OWNER)/$(NAME)"
|
URL = "https://git.netoik.io/$(OWNER)/$(NAME)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Netoïk Git Server 
|
# Netoïk Git Server 
|
||||||
|
|
||||||
Build an RPM package which will install the Git server called Gitea with custom configuration.
|
Build an RPM package which will install the Git server called Gitea with custom configuration.
|
||||||
|
|
||||||
@@ -59,8 +59,8 @@ Some commands to deploy the RPM package on server
|
|||||||
|
|
||||||
- Add Gitea repo to your repo list:
|
- Add Gitea repo to your repo list:
|
||||||
```shell
|
```shell
|
||||||
dnf config-manager --add-repo https://git.netoik.io/api/packages/samuel/rpm.repo
|
dnf config-manager --add-repo https://git.netoik.io/api/packages/netoik/rpm.repo
|
||||||
dnf repolist | grep gitea-samuel
|
dnf repolist | grep gitea-netoik
|
||||||
```
|
```
|
||||||
|
|
||||||
- Show available versions:
|
- Show available versions:
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ Documentation=https://gitea.com/gitea/act_runner
|
|||||||
After=gitea.service
|
After=gitea.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/sbin/act_runner daemon
|
ExecStart=act_runner daemon
|
||||||
ExecReload=/bin/kill -s HUP $MAINPID
|
ExecReload=kill -s HUP $MAINPID
|
||||||
WorkingDirectory=/var/lib/actrunner%i
|
WorkingDirectory=/var/lib/actrunner%i
|
||||||
TimeoutSec=0
|
TimeoutSec=0
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ User=gitea
|
|||||||
Group=gitea
|
Group=gitea
|
||||||
WorkingDirectory=/var/lib/gitea/
|
WorkingDirectory=/var/lib/gitea/
|
||||||
Environment=GITEA_WORK_DIR=/var/lib/gitea
|
Environment=GITEA_WORK_DIR=/var/lib/gitea
|
||||||
ExecStart=/usr/sbin/gitea_web_notify
|
ExecStart=gitea_web_notify
|
||||||
Restart=always
|
Restart=always
|
||||||
NotifyAccess=all
|
NotifyAccess=all
|
||||||
|
|
||||||
|
|||||||
@@ -111,6 +111,12 @@ done
|
|||||||
# Display commands and exit on error
|
# Display commands and exit on error
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
|
# Stop services
|
||||||
|
systemctl stop gitea.service
|
||||||
|
for i in $(seq 1 4); do
|
||||||
|
systemctl stop actrunner@$i
|
||||||
|
done
|
||||||
|
|
||||||
# If uninstalling, then delete users and db
|
# If uninstalling, then delete users and db
|
||||||
if [ $1 == 0 ]; then
|
if [ $1 == 0 ]; then
|
||||||
# Remove gitea user if existing
|
# Remove gitea user if existing
|
||||||
|
|||||||
Reference in New Issue
Block a user