Add state dir outputs for contract migration
This commit is contained in:
parent
58b890b971
commit
d5392ff160
@ -5,7 +5,13 @@ set -a
|
|||||||
if [ -z $DEV_DATA_DIR ]; then
|
if [ -z $DEV_DATA_DIR ]; then
|
||||||
export DEV_DATA_DIR=`mktemp -d`
|
export DEV_DATA_DIR=`mktemp -d`
|
||||||
else
|
else
|
||||||
mkdir -p $DEV_DATA_DIR
|
mkdir -vp $DEV_DATA_DIR
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z $STATE_DIR ]; then
|
||||||
|
export STATE_DIR=/run/cic_init
|
||||||
|
mkdir -vp $STATE_DIR
|
||||||
|
echo 0 > $STATE_DIR/init
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z $DEV_CONFIG_RESET ]; then
|
if [ -z $DEV_CONFIG_RESET ]; then
|
||||||
|
@ -117,6 +117,8 @@ export CIC_DEFAULT_TOKEN_SYMBOL=$CIC_DEFAULT_TOKEN_SYMBOL
|
|||||||
export TOKEN_NAME=$TOKEN_NAME
|
export TOKEN_NAME=$TOKEN_NAME
|
||||||
" >> "${DEV_DATA_DIR}"/env_reset
|
" >> "${DEV_DATA_DIR}"/env_reset
|
||||||
|
|
||||||
|
echo -n $CIC_REGISTRY_ADDRESS > $STATE_DIR/registry
|
||||||
|
|
||||||
set +a
|
set +a
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ then
|
|||||||
>&2 echo -e "\033[;31mFAILED\033[;39m RUN_MASK 1 - contract deployment"
|
>&2 echo -e "\033[;31mFAILED\033[;39m RUN_MASK 1 - contract deployment"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
echo -n 1 > $STATE_DIR/init
|
||||||
>&2 echo -e "\033[;32mSUCCEEDED\033[;39m RUN_MASK 1 - contract deployment"
|
>&2 echo -e "\033[;32mSUCCEEDED\033[;39m RUN_MASK 1 - contract deployment"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -27,5 +28,6 @@ then
|
|||||||
>&2 echo -e "\033[;31mFAILED\033[;39m RUN_MASK 2 - custodial service initialization"
|
>&2 echo -e "\033[;31mFAILED\033[;39m RUN_MASK 2 - custodial service initialization"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
echo -n 2 > $STATE_DIR/init
|
||||||
>&2 echo -e "\033[;32mSUCCEEDED\033[;39m RUN_MASK 2 - custodial service initialization"
|
>&2 echo -e "\033[;32mSUCCEEDED\033[;39m RUN_MASK 2 - custodial service initialization"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user