Mail archive
alpine-aports

[alpine-aports] [PATCH 1/2] testing/lshell: add pre-install script

From: Stuart Cardall <developer_at_it-offshore.co.uk>
Date: Thu, 16 Jul 2015 12:37:15 +0000

add lshell user:group

with $pkgrel bumped
---
 testing/lshell/APKBUILD           | 2 +-
 testing/lshell/lshell.pre-install | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 testing/lshell/lshell.pre-install
diff --git a/testing/lshell/APKBUILD b/testing/lshell/APKBUILD
index 6504225..b0b59bc 100644
--- a/testing/lshell/APKBUILD
+++ b/testing/lshell/APKBUILD
_at_@ -2,7 +2,7 @@
 # Maintainer: Fabian Affolter <fabian_at_affolter-engineering.ch>
 pkgname=lshell
 pkgver=0.9.16
-pkgrel=0
+pkgrel=1
 pkgdesc="Python-based limited Shell"
 url="http://ghantoos.org/limited-shell-lshell"
 arch="noarch"
diff --git a/testing/lshell/lshell.pre-install b/testing/lshell/lshell.pre-install
new file mode 100644
index 0000000..b8b883e
--- /dev/null
+++ b/testing/lshell/lshell.pre-install
_at_@ -0,0 +1,5 @@
+#!/bin/sh
+addgroup -S lshell 2>/dev/null
+adduser -S -H -h /var/empty -G lshell -D -s /sbin/nologin lshell 2>/dev/null
+exit 0
+
-- 
2.4.5
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Thu Jul 16 2015 - 12:37:15 GMT