]> piware.de Git - bin.git/commitdiff
system-maintenance: piware-desktop remote moved to piware.de
authorMartin Pitt <martin@piware.de>
Sun, 13 Dec 2020 10:23:19 +0000 (11:23 +0100)
committerMartin Pitt <martin@piware.de>
Sun, 13 Dec 2020 10:23:19 +0000 (11:23 +0100)
Added a persistent remote now with:

    ostree remote add --no-gpg-verify piware https://piware.de/ostree/pitti-workstation/

system-maintenance

index 3235aa2698e38edfac4112ef20fb9c12c403cc4d..7309e20f275862735d9689c1dab4a22aae2d5a90 100755 (executable)
@@ -6,23 +6,7 @@ rpm-ostree cleanup --repomd
 rpm-ostree cleanup --pending
 rpm-ostree cleanup --base
 
-# download latest repo build
-REPO=$(mktemp -d -t repo.XXXXXX)
-trap "rm -rf '$REPO'" EXIT INT QUIT PIPE
-CURL="curl -u token:$(cat ~martin/.config/github-token) --show-error --fail"
-RESPONSE=$($CURL --silent https://api.github.com/repos/martinpitt/ostree-pitti-workstation/actions/artifacts)
-ZIP=$(echo "$RESPONSE" | jq --raw-output '.artifacts | map(select(.name == "repository"))[0].archive_download_url')
-echo "INFO: Downloading $ZIP ..."
-[ -e /tmp/repository.zip ] || $CURL -L -o /tmp/repository.zip "$ZIP"
-rm -rf "$REPO"
-mkdir -p "$REPO"
-unzip -p /tmp/repository.zip | tar -xzC "$REPO"
-rm /tmp/repository.zip
-
-# upgrade
-ostree remote add --no-gpg-verify tmp-local "file://$REPO"
-rpm-ostree rebase tmp-local:
-ostree remote delete tmp-local
+rpm-ostree upgrade
 
 # fix fonts between Fedora releases
 rm -rf ~martin/.cache/fontconfig