From 061eaabe79399a0cc1812b21724a2b107bcc9d96 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 5 Oct 2022 19:50:08 +0800 Subject: [PATCH] Update gitea.service.tpl --- plugins/gitea/init.d/gitea.service.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/gitea/init.d/gitea.service.tpl b/plugins/gitea/init.d/gitea.service.tpl index 62f37d069..bc64b2801 100644 --- a/plugins/gitea/init.d/gitea.service.tpl +++ b/plugins/gitea/init.d/gitea.service.tpl @@ -1,5 +1,5 @@ [Unit] -Description=Gogs +Description=gitea After=network.target [Service] @@ -7,6 +7,7 @@ Type=forking ExecStart={$SERVER_PATH}/gitea/init.d/gitea start ExecStop={$SERVER_PATH}/gitea/init.d/gitea stop RemainAfterExit=yes +AmbientCapabilities=CAP_NET_BIND_SERVICE [Install] WantedBy=multi-user.target