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