3 source `dirname $0`/functions
7 SGCONFPATH="$BASEPATH/stg/build/sgconf"
9 printf "Check initial admin list... "
11 RES=`"$SGCONFPATH/sgconf" -s localhost -p 5555 -u admin -w 123456 --get-admins`
16 printf "Failed to get admins list. Result:\n$RES\n"
20 LOGINS=`getFields "login" "$RES"`
27 printf "Admin list should have exactly one entry.\n"
28 printf "Logins:\n$LOGINS\n"
29 printf -- "--------\n$NUM\n\n"
33 printf "Ok.\nCheck updating admin permissions... "
35 RES=`"$SGCONFPATH/sgconf" -s localhost -p 5555 -u admin -w 123456 --chg-admin admin --priv 111111111`
40 printf "Failed to update admin's priviledges Result:\n$RES\n"