From 1b97ac4a867912967f829d19cf26c2243ba5fd8b Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Thu, 5 Jan 2023 20:19:38 -0500 Subject: */*-srht: fix systemd services, RESTRICT Signed-off-by: Julien Roy --- dev-vcs/git-srht/files/git.sr.ht-api.service | 5 ++--- dev-vcs/git-srht/files/git.sr.ht-periodic.service | 2 +- dev-vcs/git-srht/files/git.sr.ht-webhooks.service | 5 ++--- dev-vcs/git-srht/files/git.sr.ht.service | 5 ++--- dev-vcs/git-srht/git-srht-0.81.3.ebuild | 1 + 5 files changed, 8 insertions(+), 10 deletions(-) (limited to 'dev-vcs/git-srht') diff --git a/dev-vcs/git-srht/files/git.sr.ht-api.service b/dev-vcs/git-srht/files/git.sr.ht-api.service index c41c2fc..bd1590d 100644 --- a/dev-vcs/git-srht/files/git.sr.ht-api.service +++ b/dev-vcs/git-srht/files/git.sr.ht-api.service @@ -1,11 +1,10 @@ [Unit] Description=git.sr.ht API service -Requires=redis.service postgresql.service -After=redis.service postgresql.service network.target +After=network.target [Service] Type=simple -User=gitsrht +User=srht Restart=always ExecStart=/usr/bin/gitsrht-api -b :5101 diff --git a/dev-vcs/git-srht/files/git.sr.ht-periodic.service b/dev-vcs/git-srht/files/git.sr.ht-periodic.service index ce4c4b7..72f5d47 100644 --- a/dev-vcs/git-srht/files/git.sr.ht-periodic.service +++ b/dev-vcs/git-srht/files/git.sr.ht-periodic.service @@ -3,5 +3,5 @@ Description=git.sr.ht maintenance tasks [Service] Type=oneshot -User=gitsrht +User=srht ExecStart=/usr/bin/gitsrht-periodic diff --git a/dev-vcs/git-srht/files/git.sr.ht-webhooks.service b/dev-vcs/git-srht/files/git.sr.ht-webhooks.service index 0a4b4d1..8adf536 100644 --- a/dev-vcs/git-srht/files/git.sr.ht-webhooks.service +++ b/dev-vcs/git-srht/files/git.sr.ht-webhooks.service @@ -1,11 +1,10 @@ [Unit] Description=git.sr.ht webhooks service -Requires=postgresql.service -After=postgresql.service network.target +After=network.target [Service] Type=simple -User=gitsrht +User=srht Restart=always ExecStart=/usr/bin/celery -A gitsrht.webhooks worker --loglevel=INFO diff --git a/dev-vcs/git-srht/files/git.sr.ht.service b/dev-vcs/git-srht/files/git.sr.ht.service index a3f0082..c3e5cde 100644 --- a/dev-vcs/git-srht/files/git.sr.ht.service +++ b/dev-vcs/git-srht/files/git.sr.ht.service @@ -1,11 +1,10 @@ [Unit] Description=git.sr.ht website service -Requires=redis.service postgresql.service -After=redis.service postgresql.service network.target +After=network.target [Service] Type=simple -User=gitsrht +User=srht Restart=always ExecStart=/usr/bin/gunicorn gitsrht.app:app -b 127.0.0.1:5001 diff --git a/dev-vcs/git-srht/git-srht-0.81.3.ebuild b/dev-vcs/git-srht/git-srht-0.81.3.ebuild index 1d01f26..7be6e31 100644 --- a/dev-vcs/git-srht/git-srht-0.81.3.ebuild +++ b/dev-vcs/git-srht/git-srht-0.81.3.ebuild @@ -14,6 +14,7 @@ SRC_URI="http://git.sr.ht/~sircmpwn/git.sr.ht/archive/${PV}.tar.gz -> ${P}.tar.g LICENSE="AGPL-3" SLOT="0" KEYWORDS="~amd64" +RESTRICT="network-sandbox" RDEPEND="" DEPEND="${RDEPEND} -- cgit v1.2.3