From bb7171ac914773d475511e6c063db12cb317b136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 28 Jan 2020 19:54:33 +0100 Subject: acc-cynerd: add --- acct-cynerd/APKBUILD | 18 ++++++++++++++++++ acct-cynerd/acct-cynerd.pre-install | 10 ++++++++++ acct-cynerd/acct-cynerd.pre-upgrade | 1 + acct-cynerd/authorized_keys | 1 + 4 files changed, 30 insertions(+) create mode 100644 acct-cynerd/APKBUILD create mode 100755 acct-cynerd/acct-cynerd.pre-install create mode 120000 acct-cynerd/acct-cynerd.pre-upgrade create mode 100644 acct-cynerd/authorized_keys (limited to 'acct-cynerd') 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čí +# Maintainer: Karel Kočí +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 -- cgit v1.2.3