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