-
Notifications
You must be signed in to change notification settings - Fork 21
/
08_RESIGN.sh
29 lines (22 loc) · 1.64 KB
/
08_RESIGN.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
################################################################################
#
# Scrip Created by http://CryptoLions.io
# For EOS Junlge testnet
#
# https://github.com/CryptoLions/
#
################################################################################
EOSIO_PRODUCER_KEY="$( jq -r '.EOSIO_PRODUCER_PUB_KEY' "00_CONFIG.conf" )"
SYSTEM_ACCOUNT=($( jq -r '.SYSTEM_ACCOUNT' "00_CONFIG.conf" ))
account="eosio"
controller="eosio.prods"
./cleos.sh push action eosio updateauth '{"account": "'$account'", "permission": "owner", "parent": "", "auth": { "threshold": 1, "keys": [], "waits": [], "accounts": [{ "weight": 1, "permission": {"actor": "'$controller'", "permission": "active"} }] } } ' -p $account@owner
./cleos.sh push action eosio updateauth '{"account": "'$account'", "permission": "active", "parent": "owner", "auth": { "threshold": 1, "keys": [], "waits": [], "accounts": [{ "weight": 1, "permission": {"actor": "'$controller'", "permission": "active"} }] } }' -p $account@active
for sa in "${SYSTEM_ACCOUNT[@]}"
do
account="$sa"
controller="eosio"
./cleos.sh push action eosio updateauth '{"account": "'$account'", "permission": "owner", "parent": "", "auth": { "threshold": 1, "keys": [], "waits": [], "accounts": [{ "weight": 1, "permission": {"actor": "'$controller'", "permission": "active"} }] } } ' -p $account@owner
./cleos.sh push action eosio updateauth '{"account": "'$account'", "permission": "active", "parent": "owner", "auth": { "threshold": 1, "keys": [], "waits": [], "accounts": [{ "weight": 1, "permission": {"actor": "'$controller'", "permission": "active"} }] } }' -p $account@active
done