fix ownership

This commit is contained in:
Daniel Langbein 2021-06-13 14:30:34 +02:00
parent 0490828256
commit 6d34ec718c

View File

@ -2,7 +2,7 @@
_pkgname=ssh-key-yoda
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgver=0.0.2
pkgrel=1
pkgdesc="ssh authorized_keys for user yoda"
arch=('any')
@ -18,6 +18,6 @@ sha256sums=('SKIP') # 'SKIP' for git sources; Otherwise: autofill using updpkgsu
package() {
cd "${_reponame}/pkg/${pkgname}"
install -dm0700 "$pkgdir"/home/yoda/.ssh/
install -m0600 authorized_keys "$pkgdir"/home/yoda/.ssh/authorized_keys
install -dm0700 -o1000 "$pkgdir"/home/yoda/.ssh/
install -m0600 -o1000 authorized_keys "$pkgdir"/home/yoda/.ssh/authorized_keys
}