From eb7bc9d29f4b4e34a03dcdf5a29b851b8cbd31fb Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 1 Jan 2024 13:27:39 -0800 Subject: [PATCH] Clean deploy/save-ord-dev-state (#2932) --- deploy/save-ord-dev-state | 21 --------------------- deploy/setup | 7 ------- 2 files changed, 28 deletions(-) delete mode 100755 deploy/save-ord-dev-state diff --git a/deploy/save-ord-dev-state b/deploy/save-ord-dev-state deleted file mode 100755 index d13be4a44e..0000000000 --- a/deploy/save-ord-dev-state +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -# Stops, copies index and exports state of running instance -systemctl stop ord - -cd /var/lib/ord - -mkdir -p /var/lib/ord/$REVISION - -# Still have to manually set --index-sats or --height-limit -# --height-limit 100000 \ -/usr/local/bin/ord --bitcoin-data-dir /var/lib/bitcoind \ - --data-dir /var/lib/ord \ - --index-sats \ - index export - -mv inscription_number_to_id.tsv ./$REVISION/inscription_number_to_id-$BRANCH-$COMMIT.tsv - -mv index.redb ./$REVISION/index-$BRANCH-$COMMIT.redb - diff --git a/deploy/setup b/deploy/setup index 224d9bda9e..5fe946c436 100755 --- a/deploy/setup +++ b/deploy/setup @@ -41,10 +41,6 @@ printf "[Service]\nEnvironment=CHAIN=%s\nEnvironment=CSP_ORIGIN=%s\n" $CHAIN $CS | tee /etc/systemd/system/bitcoind.service.d/override.conf \ > /etc/systemd/system/ord.service.d/override.conf -printf 'BRANCH=%s\n' $BRANCH >> /etc/environment \ - && printf 'COMMIT=%s\n' $COMMIT >> /etc/environment \ - && printf 'REVISION=%s\n' $REVISION >> /etc/environment - hostnamectl set-hostname $DOMAIN apt-get install --yes \ @@ -102,9 +98,6 @@ source ~/.cargo/env rustup update stable cargo build --release -if [[ -f /usr/local/bin/ord ]]; then - mv /usr/local/bin/ord /usr/local/bin/$REVISION.bak -fi cp target/release/ord /usr/local/bin/ord id --user bitcoin || useradd --system bitcoin