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