mirror of
https://github.com/runcitadel/core.git
synced 2024-12-28 15:42:59 +00:00
Remove legacy quick update
This commit is contained in:
parent
c71bbcb7e5
commit
6c1c35ec93
|
@ -1,25 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# SPDX-FileCopyrightText: 2021-2022 Citadel and contributors
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||||
|
|
||||||
CITADEL_ROOT="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/../..)"
|
|
||||||
|
|
||||||
RELEASE=$(cat "$CITADEL_ROOT"/statuses/update-status.json | jq .updateTo -r)
|
|
||||||
|
|
||||||
cat <<EOF > "$CITADEL_ROOT"/statuses/update-status.json
|
|
||||||
{"state": "installing", "progress": 30, "description": "Starting update", "updateTo": "$RELEASE"}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
curl "https://raw.githubusercontent.com/runcitadel/core/${RELEASE}/db/dependencies.yml" > "$CITADEL_ROOT"/db/dependencies
|
|
||||||
cat <<EOF > "$CITADEL_ROOT"/statuses/update-status.json
|
|
||||||
{"state": "installing", "progress": 70, "description": "Starting new containers", "updateTo": "$RELEASE"}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
"${CITADEL_ROOT}/scripts/start"
|
|
||||||
|
|
||||||
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