Updated: 0.3.0-3 - fix config ownership via tmpfiles instead of install hook

This commit is contained in:
Thobias Nordgaard 2026-02-24 22:21:51 +01:00
parent 01c6879f26
commit 8db30bc5cc
4 changed files with 7 additions and 12 deletions

View file

@ -1,7 +1,7 @@
pkgbase = tori-cli-bin
pkgdesc = Lightweight Docker monitoring with alerting
pkgver = 0.3.0
pkgrel = 2
pkgrel = 3
url = https://github.com/thobiasn/tori-cli
install = tori-cli.install
arch = x86_64
@ -22,8 +22,8 @@ pkgbase = tori-cli-bin
sha256sums = dc02531f019bb5f48aeeda9feec15e9faa3c5be3b27d81657af390659ba74ec9
sha256sums = 81c3df0de337c3cd841f1f942ec2f99ada6db1b7d178b3bb30d179093e9f16a6
sha256sums = 6a5808aabf9eb9e8f7c726dacb5639f21cec05561c40ff7bcf059da99ade3ed0
sha256sums = b9e0bcaaf31788d36e08c0673d1e36c65d287aecad96ec8dae15f59047713870
sha256sums = ee8f595d25051af044ad365b189df703842084b8ef5edc164c6b7e54e900dbdb
sha256sums = d9763ba73bb639e3d1dee431e3ca6a9974290cf4099cfdadf7c4fd1389675bee
sha256sums = 01f2ef183e2601de7f21df53a015589adac70769bc71fbdcf97aed8abf9f0fa1
source_x86_64 = tori-cli-x86_64-0.3.0::https://github.com/thobiasn/tori-cli/releases/download/v0.3.0/tori_0.3.0_linux_amd64
sha256sums_x86_64 = 9be0c2a1a0d0270367c5335aeaa66bb6340cfa071f772159f7d000e84e47d8bf
source_aarch64 = tori-cli-aarch64-0.3.0::https://github.com/thobiasn/tori-cli/releases/download/v0.3.0/tori_0.3.0_linux_arm64

View file

@ -7,7 +7,7 @@ pkgdesc="Lightweight Docker monitoring with alerting"
_appname=${_pkgname%%-cli}
pkgver=0.3.0
pkgrel=2
pkgrel=3
_pkgvername=v${pkgver}
arch=('x86_64' 'aarch64')
@ -40,8 +40,8 @@ sha256sums=('83f6ec88eb8e6ffd6ce08ad18a604c61fc60be0d68a07193ae4884081f0920aa'
'dc02531f019bb5f48aeeda9feec15e9faa3c5be3b27d81657af390659ba74ec9'
'81c3df0de337c3cd841f1f942ec2f99ada6db1b7d178b3bb30d179093e9f16a6'
'6a5808aabf9eb9e8f7c726dacb5639f21cec05561c40ff7bcf059da99ade3ed0'
'b9e0bcaaf31788d36e08c0673d1e36c65d287aecad96ec8dae15f59047713870'
'ee8f595d25051af044ad365b189df703842084b8ef5edc164c6b7e54e900dbdb')
'd9763ba73bb639e3d1dee431e3ca6a9974290cf4099cfdadf7c4fd1389675bee'
'01f2ef183e2601de7f21df53a015589adac70769bc71fbdcf97aed8abf9f0fa1')
sha256sums_x86_64=('9be0c2a1a0d0270367c5335aeaa66bb6340cfa071f772159f7d000e84e47d8bf')
sha256sums_aarch64=('09625d87cc3021a4dfdfbe8a89a63c24533b5658e9a6c17edea0c5ffbfa65a65')

View file

@ -1,5 +1,4 @@
post_install() {
chown tori:tori /etc/tori/config.toml
echo "
Welcome to tori!
-----------------------------------------------------------------------------
@ -17,11 +16,6 @@ More: https://github.com/thobiasn/tori-cli
"
}
post_upgrade() {
chown tori:tori /etc/tori/config.toml
chmod 600 /etc/tori/config.toml
}
post_remove() {
echo "
To fully remove tori, clean up the following:

View file

@ -1,2 +1,3 @@
d /var/lib/tori/ 0750 tori tori -
d /run/tori/ 0750 tori tori -
z /etc/tori/config.toml 0600 tori tori -