aboutsummaryrefslogtreecommitdiff
path: root/dev-vcs
diff options
context:
space:
mode:
authorJulien Roy <julien@jroy.ca>2023-01-05 20:19:38 -0500
committerJulien Roy <julien@jroy.ca>2023-01-05 20:19:38 -0500
commit1b97ac4a867912967f829d19cf26c2243ba5fd8b (patch)
tree82694ee6bfa62cfb8cda6df734b30818bfb7a150 /dev-vcs
parentb8690d4f0c3fd8fc67c82c0a7a97e45280cba809 (diff)
downloadMrRoy-Overlay-1b97ac4a867912967f829d19cf26c2243ba5fd8b.tar.gz
MrRoy-Overlay-1b97ac4a867912967f829d19cf26c2243ba5fd8b.tar.bz2
MrRoy-Overlay-1b97ac4a867912967f829d19cf26c2243ba5fd8b.zip
*/*-srht: fix systemd services, RESTRICT
Signed-off-by: Julien Roy <julien@jroy.ca>
Diffstat (limited to 'dev-vcs')
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht-api.service5
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht-periodic.service2
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht-webhooks.service5
-rw-r--r--dev-vcs/git-srht/files/git.sr.ht.service5
-rw-r--r--dev-vcs/git-srht/git-srht-0.81.3.ebuild1
5 files changed, 8 insertions, 10 deletions
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}