remove config-dir, change shell to /bin/ash

This commit is contained in:
LinuxSquare 2025-05-30 20:45:42 +02:00
parent b6f391bccf
commit d778310f4f
4 changed files with 3 additions and 6 deletions

View file

@ -1,6 +1,6 @@
pkgname="semaphore-bin" pkgname="semaphore-bin"
pkgver=2.14.12 pkgver=2.14.12
pkgrel=2 pkgrel=3
pkgdesc="Modern UI and powerful API for Ansible, Terraform, OpenTofu, PowerShell and other DevOps tools." pkgdesc="Modern UI and powerful API for Ansible, Terraform, OpenTofu, PowerShell and other DevOps tools."
url="https://semaphoreui.com" url="https://semaphoreui.com"
license="MIT" license="MIT"
@ -23,8 +23,6 @@ package() {
# binaries # binaries
install -d "$pkgdir/usr/bin" install -d "$pkgdir/usr/bin"
install -D -m755 "$srcdir/$pkgname-$pkgver/semaphore" "$pkgdir/usr/bin/semaphore" install -D -m755 "$srcdir/$pkgname-$pkgver/semaphore" "$pkgdir/usr/bin/semaphore"
# config
install -dm644 "$pkgdir/etc/semaphore"
# service files # service files
install -D -m755 "$srcdir/semaphore.initd" "$pkgdir/etc/init.d/semaphore" install -D -m755 "$srcdir/semaphore.initd" "$pkgdir/etc/init.d/semaphore"
} }

View file

@ -1,6 +1,5 @@
#!/bin/sh #!/bin/sh
chown semaphore:semaphore /usr/bin/semaphore chown semaphore:semaphore /usr/bin/semaphore
chown -R semaphore:semaphore /etc/semaphore
exit 0 exit 0

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
addgroup -S semaphore 2>/dev/null addgroup -S semaphore 2>/dev/null
adduser -S -D -h /var/lib/semaphore -s /sbin/nologin -G semaphore -g semaphore semaphore 2>/dev/null adduser -S -D -h /var/lib/semaphore -s /bin/ash -G semaphore semaphore 2>/dev/null
exit 0 exit 0

View file

@ -4,5 +4,5 @@ name=$RC_SVCNAME
description="Semaphore Service" description="Semaphore Service"
supervisor="supervise-daemon" supervisor="supervise-daemon"
command="/usr/bin/semaphore" command="/usr/bin/semaphore"
command_args="server --config /etc/semaphore/config.json" command_args="server --config /var/lib/semaphore/config.json"
command_user="semaphore" command_user="semaphore"