summaryrefslogtreecommitdiff
path: root/localserver/givegm.sh
diff options
context:
space:
mode:
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..ac9d301
--- /dev/null
+++ b/localserver/givegm.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env 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