summaryrefslogtreecommitdiff
path: root/localserver/givegm.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-01 00:38:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-01 00:38:00 +0300
commit8c023395258e35e78464155de47c03341630d288 (patch)
tree9ff93ed68a5afccaf002237450124eb4a6c6e1dc /localserver/givegm.sh
parentb5042022ac2b5f0183e2c53ad9bdebfa409eb212 (diff)
downloadevol-tools-8c023395258e35e78464155de47c03341630d288.tar.gz
evol-tools-8c023395258e35e78464155de47c03341630d288.tar.bz2
evol-tools-8c023395258e35e78464155de47c03341630d288.tar.xz
evol-tools-8c023395258e35e78464155de47c03341630d288.zip
add tools for managing local server.
Diffstat (limited to 'localserver/givegm.sh')
-rwxr-xr-xlocalserver/givegm.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/localserver/givegm.sh b/localserver/givegm.sh
new file mode 100755
index 0000000..c1a9c28
--- /dev/null
+++ b/localserver/givegm.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+ID="$1"
+if [[ -z "${ID}" ]]; then
+ mysql -u evol -pevol evol -e "update login set group_id=99 where account_id=2000000;"
+else
+ mysql -u evol -pevol evol -e "update login set group_id=99 where account_id=${ID} or userid='${ID}';"
+fi