fix ownership2

This commit is contained in:
Daniel Langbein 2021-06-13 14:32:37 +02:00
parent 6d34ec718c
commit 3432768df2

View File

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