Skip to content

Commit

Permalink
Update Entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
hmzakhalid committed Dec 5, 2024
1 parent 0d9eb81 commit 6713c87
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/ciphernode/ciphernode-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set -e
# Paths to config and secrets
CONFIG_FILE="$CONFIG_DIR/config.yaml"
SECRETS_FILE="$SECRETS_DIR/secrets.json"
KEYFILE="$CONFIG_DIR/key"
AGGREGATOR="$AGGREGATOR"

# Ensure required files exist
Expand All @@ -30,13 +29,12 @@ fi
# Set password and private key
echo "Setting password"
enclave password create --config "$CONFIG_FILE" --password "$PASSWORD"

if [ "$AGGREGATOR" = "true" ]; then
if [ -f "$KEYFILE" ]; then
echo "Setting private key"
enclave wallet set --config "$CONFIG_FILE" --private-key "$PRIVATE_KEY"
fi
echo "Setting private key"
enclave wallet set --config "$CONFIG_FILE" --private-key "$PRIVATE_KEY"

echo "Starting aggregator"
# Start the aggregator
exec enclave aggregator start --config "$CONFIG_FILE"
else
echo "Starting Ciphernode"
Expand Down

0 comments on commit 6713c87

Please sign in to comment.