5 SGCONFPATH="$BASEPATH/stg/projects/sgconf"
7 RES=`"$SGCONFPATH/sgconf" -s localhost -p 5555 -u admin -w 123456 --get-admins`
11 printf "Failed to get admins list. Result:\n$RES\n"
15 printf "Got admins list:\n"
23 LOGIN=`printf "$LINE" | grep login`
26 LOGINS="$LOGINS\n"`printf "$LOGIN" | cut -d: -f2 | sed -e 's/^ *//' -e 's/ *$//'`
31 printf "Logins:\n$LOGINS\n"
33 NUM=`printf "$LOGINS" | wc -l`
35 printf -- "--------\n$NUM\n\n"
37 RES=`"$SGCONFPATH/sgconf" -s localhost -p 5555 -u admin -w 123456 --chg-admin admin --priv 111111111`
41 printf "Failed to update admin's priviledges Result:\n$RES\n"