From 887a7283ee98948ebf7ad7a13efdfb9293ff50b4 Mon Sep 17 00:00:00 2001 From: Jakub Kujawa Date: Sun, 28 Jan 2024 11:26:47 +0100 Subject: [PATCH] chore: remove ublue-update.sh script --- modules/bling/installers/ublue-update.sh | 31 ------------------------ 1 file changed, 31 deletions(-) delete mode 100644 modules/bling/installers/ublue-update.sh diff --git a/modules/bling/installers/ublue-update.sh b/modules/bling/installers/ublue-update.sh deleted file mode 100644 index 5e505a4f98..0000000000 --- a/modules/bling/installers/ublue-update.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -# Tell build process to exit if there are any errors. -set -euo pipefail - -get_config_value() { - sed -n '/^'"$1"'=/{s/'"$1"'=//;p}' "$2" -} - -set_config_value() { - CURRENT=$(get_config_value "$1" "$3") - sed -i 's/'"$1"'='"$CURRENT"'/'"$1"'='"$2"'/g' "$3" -} - -# Check if ublue-os-update-services rpm is installed, these services conflict with ublue-update -if rpm -q ublue-os-update-services >/dev/null; then - rpm-ostree override remove ublue-os-update-services -fi - -# Change the conflicting update policy for rpm-ostreed -RPM_OSTREE_CONFIG="/etc/rpm-ostreed.conf" - -if [[ -f "$RPM_OSTREE_CONFIG" ]]; then - if [[ $(get_config_value "AutomaticUpdatePolicy" "$RPM_OSTREE_CONFIG") == "stage" ]]; then - set_config_value "AutomaticUpdatePolicy" "none" "$RPM_OSTREE_CONFIG" - fi -fi -systemctl disable rpm-ostreed-automatic.timer -# topgrade is REQUIRED by ublue-update to install -pip install --prefix=/usr topgrade -rpm-ostree install ublue-update \ No newline at end of file