mirror of
https://github.com/runcitadel/core.git
synced 2024-09-23 09:40:04 +00:00
Fix 0.1.0
This commit is contained in:
parent
43f1e25bc2
commit
89462630d4
|
@ -74,6 +74,9 @@ if [[ ! -z "${CITADEL_OS:-}" ]]; then
|
|||
sudo apt install -y python3-semver
|
||||
fi
|
||||
|
||||
# Help migration from earlier versions
|
||||
mv "$CITADEL_ROOT/db/umbrel-seed" "$CITADEL_ROOT/db/citadel-seed" || true
|
||||
|
||||
cd "$CITADEL_ROOT"
|
||||
|
||||
# Stopping karen
|
||||
|
@ -96,6 +99,8 @@ cat <<EOF > "$CITADEL_ROOT"/statuses/update-status.json
|
|||
EOF
|
||||
./scripts/stop || true
|
||||
|
||||
electrum_implementation=$(cat services/installed.yml | grep "electrum:" | sed "s/electrum: //g")
|
||||
|
||||
# Overlay home dir structure with new dir tree
|
||||
echo "Overlaying $CITADEL_ROOT/ with new directory tree"
|
||||
rsync --archive \
|
||||
|
@ -117,8 +122,27 @@ 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": ""}
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue
Block a user