1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00

community/minio: don't let adduser create home dir

The home directory should be created by the package, not pre-install
script; adduser copies skel files.
This commit is contained in:
Jakub Jirutka 2022-09-01 01:43:19 +02:00
parent 32e1fc57a3
commit d4e8dad375
2 changed files with 3 additions and 1 deletions

View file

@ -72,6 +72,8 @@ package() {
# This file might contain secrets.
install -Dm640 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
install -d -m700 -o minio -g minio "$pkgdir"/var/lib/$pkgname
}
cleanup_srcdir() {

View file

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