Update isportzap-member
This commit is contained in:
parent
b5a80bafdf
commit
b2b17ba5da
1 changed files with 5 additions and 8 deletions
|
@ -1,12 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
##
|
||||||
|
# main
|
||||||
group="_portzap"
|
group="_portzap"
|
||||||
if id -Gn | \
|
mygroups=$(id -Gn | tr ' ' '\n')
|
||||||
tr ' ' '\n' | \
|
echo "${mygroups}" | grep -e "^${group}$" > /dev/null 2>&1
|
||||||
grep -e "^${group}$" \
|
exit "${?}"
|
||||||
> /dev/null 2>&1; then
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue