]> git.stg.codes - stg.git/commitdiff
Added changing permissions.
authorMaxim Mamontov <faust.madf@gmail.com>
Fri, 10 Oct 2014 19:57:28 +0000 (22:57 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Fri, 10 Oct 2014 19:57:28 +0000 (22:57 +0300)
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