summaryrefslogblamecommitdiff
path: root/localserver/givegm.sh
blob: c1a9c28556026a4f829f35dc18f5f2741c39ca2c (plain) (tree)
1
2
3
4
5
6
7
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