diff --git a/tools/addon/komodo.sh b/tools/addon/komodo.sh index 66ade114a..bd5289b6c 100644 --- a/tools/addon/komodo.sh +++ b/tools/addon/komodo.sh @@ -111,6 +111,12 @@ function update() { sed -i '/^KOMODO_PASSKEY=/d' "$COMPOSE_ENV" fi + # === v2 migration: ensure PERIPHERY_CORE_PUBLIC_KEYS is set === + if ! grep -q 'PERIPHERY_CORE_PUBLIC_KEYS' "$COMPOSE_ENV"; then + echo '## Use the public key generated by Core.' >> "$COMPOSE_ENV" + echo 'PERIPHERY_CORE_PUBLIC_KEYS=file:/config/keys/core.pub' >> "$COMPOSE_ENV" + fi + # === ensure backups path is set === if ! grep -q 'COMPOSE_KOMODO_BACKUPS_PATH=' "$COMPOSE_ENV"; then echo 'COMPOSE_KOMODO_BACKUPS_PATH=/etc/komodo/backups' >>"$COMPOSE_ENV"