summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsomini2020-12-08 20:33:22 +0000
committersomini2020-12-08 20:33:22 +0000
commit1a957324db79b5a7be3b9900775b2d022421e8b0 (patch)
treeaf925b87967bca415d87abeb485138995628c667
parent5ad27360d993a089f69f51edcf3256a7cee4f81c (diff)
downloadaur-1a957324db79b5a7be3b9900775b2d022421e8b0.tar.gz
Run nitter in a specific account
See https://wiki.archlinux.org/index.php/Web_application_package_guidelines See https://aur.archlinux.org/packages/nitter-git/#comment-777943
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD6
-rw-r--r--nitter.service1
3 files changed, 7 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 72ab71d25e8..4e13492fb4c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = nitter-git
pkgdesc = Alternative Twitter front-end
pkgver = latest
- pkgrel = 8
+ pkgrel = 9
url = https://github.com/zedeus/nitter
install = nitter.install
arch = x86_64
@@ -24,7 +24,7 @@ pkgbase = nitter-git
sha256sums = 827a028b78761593ac1f835eff87c8495c84689893ad6ff71f2edb4b484239d4
sha256sums = 832d2963389270332e50da95082d43babbe40124dc2d7177bb19eefac9586891
sha256sums = 79469c5cfeacf38c7469a2240ba5c19670ddaf757e6d1b5286206a18a0718487
- sha256sums = 47a5d6098a6750916110dd1172f2e5c327d863e44053a8d97883d61f78f5ef00
+ sha256sums = 560d98833c56979cb6b5d187a827788dbbdff95871f957225604b58b15c1c219
sha256sums = 57eb0d0aa47416006f107df078221e64023881123e8ec961266029db9228af9d
pkgname = nitter-git
diff --git a/PKGBUILD b/PKGBUILD
index a676c218e80..39af41970a1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=nitter
pkgname=nitter-git
pkgver=latest
-pkgrel=8
+pkgrel=9
pkgdesc="Alternative Twitter front-end"
url="https://github.com/zedeus/nitter"
depends=('redis')
@@ -23,7 +23,7 @@ sha256sums=('SKIP'
'827a028b78761593ac1f835eff87c8495c84689893ad6ff71f2edb4b484239d4'
'832d2963389270332e50da95082d43babbe40124dc2d7177bb19eefac9586891'
'79469c5cfeacf38c7469a2240ba5c19670ddaf757e6d1b5286206a18a0718487'
- '47a5d6098a6750916110dd1172f2e5c327d863e44053a8d97883d61f78f5ef00'
+ '560d98833c56979cb6b5d187a827788dbbdff95871f957225604b58b15c1c219'
'57eb0d0aa47416006f107df078221e64023881123e8ec961266029db9228af9d')
pkgver() {
@@ -70,4 +70,6 @@ package() {
ln -sv "/etc/nitter.conf" "$main_dir/nitter.conf"
# Public Folder
cp -r --no-preserve=all public -t "$main_dir"
+ # System User
+ echo 'u nitter - "Nitter" /usr/share/nitter' | install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
}
diff --git a/nitter.service b/nitter.service
index 13e37a7ea31..74503ba13f0 100644
--- a/nitter.service
+++ b/nitter.service
@@ -4,6 +4,7 @@ After=network.service redis.service
Requires=redis.service
[Service]
+User=nitter
ExecStart=/usr/bin/nitter
[Install]