diff --git a/deployer/archipel/start-chain.sh b/deployer/archipel/start-chain.sh index 5d99b46..93f250d 100755 --- a/deployer/archipel/start-chain.sh +++ b/deployer/archipel/start-chain.sh @@ -26,12 +26,12 @@ if [ ! -z "$CONFIG_FILE" ]; then fi #unpack config file - if [ ! -f "/config/config.json" ]; then + if [ -f "/config/archipel-config.zip" ]; then #if config file password was set unzip with password if [ ! -z "$CONFIG_FILE_PASSWORD" ]; then - unzip -P "$CONFIG_FILE_PASSWORD" -o /config/archipel-config.zip -d /config + unzip -f -P "$CONFIG_FILE_PASSWORD" -o /config/archipel-config.zip -d /config else - unzip -o /config/archipel-config.zip -d /config + unzip -f -o /config/archipel-config.zip -d /config fi #check unzip command check_cmd $? 'unzip config file' diff --git a/deployer/archipel/start-orchestrator.sh b/deployer/archipel/start-orchestrator.sh index efb2180..8942bbe 100755 --- a/deployer/archipel/start-orchestrator.sh +++ b/deployer/archipel/start-orchestrator.sh @@ -26,12 +26,12 @@ if [ ! -z "$CONFIG_FILE" ]; then fi #unpack config file - if [ ! -f "/config/config.json" ]; then + if [ -f "/config/archipel-config.zip" ]; then #if config file password was set unzip with password if [ ! -z "$CONFIG_FILE_PASSWORD" ]; then - unzip -P "$CONFIG_FILE_PASSWORD" -o /config/archipel-config.zip -d /config + unzip -f -P "$CONFIG_FILE_PASSWORD" -o /config/archipel-config.zip -d /config else - unzip -o /config/archipel-config.zip -d /config + unzip -f -o /config/archipel-config.zip -d /config fi #check unzip command check_cmd $? 'unzip config file' diff --git a/deployer/archipel/start-wireguard.sh b/deployer/archipel/start-wireguard.sh index f3f589e..714c531 100644 --- a/deployer/archipel/start-wireguard.sh +++ b/deployer/archipel/start-wireguard.sh @@ -26,12 +26,12 @@ if [ ! -z "$CONFIG_FILE" ]; then fi #unpack config file - if [ ! -f "/config/config.json" ]; then + if [ -f "/config/archipel-config.zip" ]; then #if config file password was set unzip with password if [ ! -z "$CONFIG_FILE_PASSWORD" ]; then - unzip -P "$CONFIG_FILE_PASSWORD" -o /config/archipel-config.zip -d /config + unzip -f -P "$CONFIG_FILE_PASSWORD" -o /config/archipel-config.zip -d /config else - unzip -o /config/archipel-config.zip -d /config + unzip -f -o /config/archipel-config.zip -d /config fi #check unzip command check_cmd $? 'unzip config file' diff --git a/doc/polkadot-keys-initialization.md b/doc/polkadot-keys-initialization.md index ab98549..bc9b77b 100644 --- a/doc/polkadot-keys-initialization.md +++ b/doc/polkadot-keys-initialization.md @@ -138,4 +138,28 @@ Here how to extract the value from env varibale : ```bash export ROTATE_KEY=$(cat kusama-session-gran-ed25519.keys | grep Public | cut -d":" -f2)$(cat kusama-session-babe-sr25519.keys | grep Public | cut -d":" -f2 | cut -c 4-)$(cat kusama-session-imon-sr25519.keys | grep Public | cut -d":" -f2 | cut -c 4-)$(cat kusama-session-para-sr25519.keys | grep Public | cut -d":" -f2 | cut -c 4-)$(cat kusama-session-audi-sr25519.keys | grep Public | cut -d":" -f2 | cut -c 4-) -``` \ No newline at end of file +``` + +### Check 5 sesssion keys correctly installed on your node with ROTATE_KEY value check + +Connect to the container polkadot like this: + +```bash +docker exec -it kusama-data-polkadot-synch sh +``` + +Export the ROTATE_KEY you want to verify as well install in your node : + +```bash + export ROTATE_KEY=0x00000000000000000001.... + echo $ROTATE_KEY +``` + +Call of `author_hasSessionKeys` must return true. + +```bash +> curl http://localhost:9993 -H 'Content-Type:application/json;charset=utf-8' -d "{\"jsonrpc\":\"2.0\",\"id\":1, \"method\":\"author_hasSessionKeys\", \"params\": [\"$ROTATE_KEY\"]}" +> {"jsonrpc":"2.0","result":true,"id":1} +``` + +Check on you 3 Archipel polkadot running nodes. If all nodes are ready to operate on this sessions key, you are now confident to [Submitting the setKeys Transaction](https://wiki.polkadot.network/docs/en/maintain-guides-how-to-validate-kusama#submitting-the-setkeys-transaction).