Support custom environment file in systemd service

This commit is contained in:
Balakrishnan Balasubramanian 2025-03-28 00:59:18 -04:00
parent 7cfd98c9e2
commit de7478c913
3 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
pkgbase = audiobookshelf
pkgdesc = Self-hosted audiobook server for managing and playing audiobooks
pkgver = 2.20.0
pkgrel = 11
pkgrel = 12
epoch = 1
url = https://github.com/advplyr/audiobookshelf
arch = x86_64
@ -23,7 +23,7 @@ pkgbase = audiobookshelf
sha256sums = b0a3072c3274658c8de35af66a1ddffb5fee33eb5ec293046edb26a865a2519e
sha256sums = 50a42f0de1da9f780da11fa8413539fbb0a77857205b7ae25bb5bd35f51ad335
sha256sums = 91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b
sha256sums = f23f720558ebf51f9b8a95ddd57b8dc34f601c7dc93d0d606113a9f62f0060b3
sha256sums = 6caf801cfd2ba12002b32cf9029111ccc02da794f9bf4721f5e110a7940e4817
sha256sums = cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa
sha256sums = e69c8dabb467817c2c986a3bc83bfa6ad7e9af1edafb6d1bace06fdc60c204cd
sha256sums = ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f

View File

@ -4,7 +4,7 @@
pkgname=audiobookshelf
pkgver=2.20.0
pkgrel=11
pkgrel=12
epoch=1
pkgdesc="Self-hosted audiobook server for managing and playing audiobooks"
arch=("x86_64" "aarch64")
@ -24,7 +24,7 @@ source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz
sha256sums=('b0a3072c3274658c8de35af66a1ddffb5fee33eb5ec293046edb26a865a2519e'
'50a42f0de1da9f780da11fa8413539fbb0a77857205b7ae25bb5bd35f51ad335'
'91d00bbc9800f80cde439fd9b5343cf031b6a09557f03172c92d40f2f0775c2b'
'f23f720558ebf51f9b8a95ddd57b8dc34f601c7dc93d0d606113a9f62f0060b3'
'6caf801cfd2ba12002b32cf9029111ccc02da794f9bf4721f5e110a7940e4817'
'cd5db44865de6f7401093b60869f937703213f196220e8c3325fa7f1b02db1fa'
'e69c8dabb467817c2c986a3bc83bfa6ad7e9af1edafb6d1bace06fdc60c204cd'
'ec04988b13dd049fbd021a51275c92120179f74f1e71fd9141bd720633e5f99f')

View File

@ -5,6 +5,7 @@ Requires=network.target
[Service]
Type=simple
EnvironmentFile=/etc/conf.d/audiobookshelf
EnvironmentFile=-/etc/conf.d/audiobookshelf.custom
WorkingDirectory=/var/lib/audiobookshelf
ExecStart=/usr/bin/audiobookshelf
ExecReload=/bin/kill -HUP $MAINPID