diff options
author | emanuele-f | 2019-06-19 22:54:38 +0200 |
---|---|---|
committer | emanuele-f | 2019-06-19 22:54:38 +0200 |
commit | 393fe7a3af27f79dba401812c0b0e78a6043ecf3 (patch) | |
tree | bfb4c79618f30f1e999edb036b067b8ec0720b94 | |
parent | ed5bbb4b7c043373e72d25e79d40d22810af5070 (diff) | |
download | aur-393fe7a3af27f79dba401812c0b0e78a6043ecf3.tar.gz |
Add n2n user and group creation
-rw-r--r-- | PKGBUILD | 7 | ||||
-rw-r--r-- | n2n.install | 9 |
2 files changed, 13 insertions, 3 deletions
@@ -2,7 +2,7 @@ # Contributor: maz-1 <ohmygod19993 at gmail dot com> pkgname=n2n-git _pkgname=n2n -pkgver=2.5.0.r104 +pkgver=2.5.0.r201 pkgrel=1 pkgdesc="Peer-to-Peer VPN." arch=(i686 x86_64 armv7h aarch64) @@ -12,8 +12,9 @@ depends=('openssl' 'net-tools') makedepends=('git') provides=(n2n) conflicts=(n2n) -source=('git+https://github.com/ntop/n2n.git') -md5sums=('SKIP') +install="n2n.install" +source=('git+https://github.com/ntop/n2n.git' 'n2n.install') +md5sums=('SKIP' '4f4c2659da00c0a7c6f5ceb42fc82a71') pkgver() { cd "$srcdir/$_pkgname" diff --git a/n2n.install b/n2n.install new file mode 100644 index 000000000000..4575f81a59ad --- /dev/null +++ b/n2n.install @@ -0,0 +1,9 @@ +post_install() { + post_upgrade +} + +post_upgrade() { + # the n2n user will be used by the supernode and edge services + getent group n2n >/dev/null || groupadd -r n2n + getent passwd n2n >/dev/null || useradd -M -N -d / -g n2n -r -s /sbin/nologin n2n +} |