This commit is contained in:
Aaron Dewes 2022-11-02 07:33:48 +01:00 committed by GitHub
parent 29d112e756
commit 70bd6cd058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,26 +122,8 @@ cat <<EOF > "$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 <<EOF > "$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 <<EOF > "$CITADEL_ROOT"/statuses/update-status.json
{"state": "success", "progress": 100, "description": "Successfully installed Citadel $RELEASE", "updateTo": ""}