From af6d75503605a4c3e800d0cce2458740b409a527 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Sun, 23 Jul 2023 22:54:55 -0600 Subject: [PATCH] Generate jwt secret --- app/data/config/mainnet-eth/scripts/run-geth.sh | 2 +- app/data/config/mainnet-eth/scripts/run-lighthouse.sh | 2 +- app/data/stacks/mainnet-eth/deploy/commands.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/data/config/mainnet-eth/scripts/run-geth.sh b/app/data/config/mainnet-eth/scripts/run-geth.sh index c72b371f..c249618b 100755 --- a/app/data/config/mainnet-eth/scripts/run-geth.sh +++ b/app/data/config/mainnet-eth/scripts/run-geth.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh if [[ -n "$CERC_SCRIPT_DEBUG" ]]; then set -x fi diff --git a/app/data/config/mainnet-eth/scripts/run-lighthouse.sh b/app/data/config/mainnet-eth/scripts/run-lighthouse.sh index ac4ffc1b..48dbbaca 100755 --- a/app/data/config/mainnet-eth/scripts/run-lighthouse.sh +++ b/app/data/config/mainnet-eth/scripts/run-lighthouse.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh if [[ -n "$CERC_SCRIPT_DEBUG" ]]; then set -x fi diff --git a/app/data/stacks/mainnet-eth/deploy/commands.py b/app/data/stacks/mainnet-eth/deploy/commands.py index 194c970d..09586aac 100644 --- a/app/data/stacks/mainnet-eth/deploy/commands.py +++ b/app/data/stacks/mainnet-eth/deploy/commands.py @@ -25,7 +25,7 @@ def setup(ctx): def create(ctx): # Generate the JWT secret and save to its config file - secret = token_hex(16) + secret = token_hex(32) jwt_file_path = ctx.deployment_dir.joinpath("data", "mainnet_eth_config_data", "jwtsecret") with open(jwt_file_path, 'w+') as jwt_file: jwt_file.write(secret)