Skip to content

Commit

Permalink
chore: remove ublue copr for ptyxis install (#271)
Browse files Browse the repository at this point in the history
* Remove ublue copr for ptyxis install

* Only use COPR for 39

* Source /etc/os-release
  • Loading branch information
p5 authored Aug 4, 2024
1 parent e41a454 commit d6b4b2c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lumina/scripts/_base/003-ptyxis-terminal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ source /etc/os-release

FEDORA_VERSION=$VERSION_ID

wget https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-$(rpm -E %fedora)/ublue-os-staging-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_ublue-os_staging.repo
if [[ "$FEDORA_VERSION" == "39" ]]; then
# Add the COPR repository
wget https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-$(rpm -E %fedora)/ublue-os-staging-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_ublue-os_staging.repo
fi

# Install the package
rpm-ostree install ptyxis

rm -rf /etc/yum.repos.d/_copr_ublue-os_staging.repo
# Check if the Fedora version is 39
if [[ "$FEDORA_VERSION" == "39" ]]; then
rm -rf /etc/yum.repos.d/_copr_ublue-os_staging.repo
fi

0 comments on commit d6b4b2c

Please sign in to comment.