diff options
author | Karel Kočí <cynerd@email.cz> | 2020-01-28 19:54:33 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2020-01-28 19:54:33 +0100 |
commit | bb7171ac914773d475511e6c063db12cb317b136 (patch) | |
tree | f23bfaf8ddf5a86a93e38710a1db2a86b2dd64fe | |
parent | fef0d7d1eebfd3dad174855ed5f419e6af23a8b0 (diff) | |
download | alpine-personal-pkgs-bb7171ac914773d475511e6c063db12cb317b136.tar.gz alpine-personal-pkgs-bb7171ac914773d475511e6c063db12cb317b136.tar.bz2 alpine-personal-pkgs-bb7171ac914773d475511e6c063db12cb317b136.zip |
acc-cynerd: add
-rw-r--r-- | acct-cynerd/APKBUILD | 18 | ||||
-rwxr-xr-x | acct-cynerd/acct-cynerd.pre-install | 10 | ||||
l--------- | acct-cynerd/acct-cynerd.pre-upgrade | 1 | ||||
-rw-r--r-- | acct-cynerd/authorized_keys | 1 |
4 files changed, 30 insertions, 0 deletions
diff --git a/acct-cynerd/APKBUILD b/acct-cynerd/APKBUILD new file mode 100644 index 0000000..49abdff --- /dev/null +++ b/acct-cynerd/APKBUILD @@ -0,0 +1,18 @@ +# Contributor: Karel Kočí <cynerd@email.cz> +# Maintainer: Karel Kočí <cynerd@email.cz> +pkgname=acct-cynerd +pkgver=0.1 +pkgrel=1 +pkgdesc="Personal Cynerd account" +url="https://git.cynerd.cz/alpine-personal-pkgs/" +arch="noarch" +license="GPLv3" +options="!check" + +depends="shellrc-zsh" +source="authorized_keys" +install="$pkgname.pre-install $pkgname.pre-upgrade" + +package() { + install -D -m 644 "$srcdir"/authorized_keys "$pkgdir"/home/cynerd/.ssh/authorized_keys +} diff --git a/acct-cynerd/acct-cynerd.pre-install b/acct-cynerd/acct-cynerd.pre-install new file mode 100755 index 0000000..60e70a9 --- /dev/null +++ b/acct-cynerd/acct-cynerd.pre-install @@ -0,0 +1,10 @@ +#!/bin/sh + +addgroup -S cynerd 2>/dev/null +adduser -D -h /home/cynerd -s /bin/zsh -G cynerd cynerd 2>/dev/null + +for group in wheel uucp audio dialout video kvm users abuild; do + adduser cynerd $group 2>/dev/null +done + +exit 0 diff --git a/acct-cynerd/acct-cynerd.pre-upgrade b/acct-cynerd/acct-cynerd.pre-upgrade new file mode 120000 index 0000000..30bcbc8 --- /dev/null +++ b/acct-cynerd/acct-cynerd.pre-upgrade @@ -0,0 +1 @@ +acct-cynerd.pre-install
\ No newline at end of file diff --git a/acct-cynerd/authorized_keys b/acct-cynerd/authorized_keys new file mode 100644 index 0000000..4b7ac00 --- /dev/null +++ b/acct-cynerd/authorized_keys @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3cs5UOO/epaxSUaO6kDtQlfdS/K5GEJBGK9nH+KcRL4DNQlAGWZsJiJQPuIL3fGlzRLqnPr8YEMbT5sl/moe/gZe2VD5FoAr2dR2fEw5wXXDI90bxbmCWqbyjmRxlKxdKhc6v1BukmuxScsZO0VrUNks1veCGgi1G9w+tY5HevBlMqvDyDpU/H1LN7MVgkCser+ROjRPviDhLaXk6dLKut33SYgce02s5hlvTiWQa+CqeBfRkdiP5VBo/7PQOWsd8GSfCgO0mwhxFowG8cMFyEwMOi70HeNmURtKbd/h6cz0zsdA39fQ8huRWHRd/CQhgIUOsM+W0uPEwkv9HBErx Private key |