picloud now can be configured from config
service fix
This commit is contained in:
@@ -5,11 +5,13 @@ action=$1
|
||||
version=$2
|
||||
|
||||
if [ "$action" = "install" ]; then
|
||||
gr=dialout
|
||||
if grep -q gpio /etc/group; then
|
||||
gr=$gr,gpio
|
||||
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
|
||||
fi
|
||||
useradd --system --create-home --home-dir /var/lib/shs --shell /usr/sbin/nologin --groups $gr shs
|
||||
fi
|
||||
#if [ "$action" = upgrade ] || [ "$action" = install ]
|
||||
#then
|
||||
@@ -20,6 +22,4 @@ fi
|
||||
# fi
|
||||
#fi
|
||||
|
||||
#dpkg-maintscript-helper rm_conffile /etc/network/if-up.d/openssh-server 1:7.9p1-1~ -- "$@"
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user