]> git.stg.codes - stg.git/blobdiff - functest/test_admins.sh
Added changing permissions.
[stg.git] / functest / test_admins.sh
index f82205e29cf6114f2e403c4d87b0ed6c91bcd07e..d82d97bcb596c73f768a04c682524131a1d72954 100755 (executable)
@@ -33,3 +33,11 @@ printf "Logins:\n$LOGINS\n"
 NUM=`printf "$LOGINS" | wc -l`
 
 printf -- "--------\n$NUM\n\n"
+
+RES=`"$SGCONFPATH/sgconf" -s localhost -p 5555 -u admin -w 123456 --chg-admin admin --priv 111111111`
+
+if [ "$?" != "0" ]
+then
+    printf "Failed to update admin's priviledges Result:\n$RES\n"
+    exit 0
+fi