picloud service

This commit is contained in:
2021-07-26 12:22:58 +03:00
parent c91b54d325
commit f3189472e6

View File

@@ -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