mirror of
https://github.com/runcitadel/core.git
synced 2024-12-28 15:42:59 +00:00
Clean up
This commit is contained in:
parent
29d112e756
commit
70bd6cd058
|
@ -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": ""}
|
||||
|
|
Loading…
Reference in New Issue
Block a user