diff --git a/scripts/update/01-run.sh b/scripts/update/01-run.sh index e3a82b3..122e1ea 100755 --- a/scripts/update/01-run.sh +++ b/scripts/update/01-run.sh @@ -122,26 +122,8 @@ cat < "$CITADEL_ROOT"/statuses/update-status.json {"state": "installing", "progress": 80, "description": "Starting new containers", "updateTo": "$RELEASE"} EOF cd "$CITADEL_ROOT" -# Only for 0.1.0, remove after -rm -f nginx/nginx.conf || true ./scripts/start || true -# Install the electrum implementation as app -echo "Installing electrum implementation as app" -cat < "$CITADEL_ROOT"/statuses/update-status.json -{"state": "installing", "progress": 85, "description": "Installing electrum server", "updateTo": "$RELEASE"} -EOF -./scripts/app install "$electrum_implementation" || true -./scripts/app stop "$electrum_implementation" - -rm -rf "$CITADEL_ROOT"/app-data/"$electrum_implementation"/data - -mv "$CITADEL_ROOT"/"$electrum_implementation" "$CITADEL_ROOT"/app-data/"$electrum_implementation"/data - -rm -f "$CITADEL_ROOT"/app-data/"$electrum_implementation"/data/electrs.toml -rm -f "$CITADEL_ROOT"/app-data/"$electrum_implementation"/data/fulcrum.conf - -./scripts/app start "$electrum_implementation" cat < "$CITADEL_ROOT"/statuses/update-status.json {"state": "success", "progress": 100, "description": "Successfully installed Citadel $RELEASE", "updateTo": ""}