picloud service
This commit is contained in:
@@ -5,13 +5,11 @@ action=$1
|
||||
version=$2
|
||||
|
||||
if [ "$action" = "install" ]; then
|
||||
if ! id shs &>/dev/null; then
|
||||
gr=dialout
|
||||
if grep -q gpio /etc/group; then
|
||||
gr=$gr,gpio
|
||||
fi
|
||||
useradd --system --create-home --home-dir /var/lib/shs --shell /usr/sbin/nologin --groups $gr shs
|
||||
gr=dialout
|
||||
if grep -q gpio /etc/group; then
|
||||
gr=$gr,gpio
|
||||
fi
|
||||
useradd --system --create-home --home-dir /var/lib/shs --shell /usr/sbin/nologin --groups $gr shs || true
|
||||
fi
|
||||
#if [ "$action" = upgrade ] || [ "$action" = install ]
|
||||
#then
|
||||
|
||||
Reference in New Issue
Block a user