mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-29 09:32:55 +00:00
fix: make sure flatpak install script does not run if already installed
This commit is contained in:
parent
654a7357b3
commit
97fab178c6
@ -1,6 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source /etc/default/bazzite
|
source /etc/default/bazzite
|
||||||
|
|
||||||
|
FLATPAK_INSTALLED_CONDITION_CHECK="/etc/bazzite/sys_flatpak_configured"
|
||||||
|
|
||||||
|
if [[ -f "$FLATPAK_INSTALLED_CONDITION_CHECK" ]] ; then
|
||||||
|
printf "System flatpaks are already installed (%s)" "$FLATPAK_INSTALLED_CONDITION_CHECK"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if grep -qz 'fedora' <<< $(flatpak remotes); then
|
if grep -qz 'fedora' <<< $(flatpak remotes); then
|
||||||
/usr/lib/fedora-third-party/fedora-third-party-opt-out
|
/usr/lib/fedora-third-party/fedora-third-party-opt-out
|
||||||
/usr/bin/fedora-third-party disable
|
/usr/bin/fedora-third-party disable
|
||||||
@ -29,3 +36,5 @@ if [[ -f '/etc/flatpak/deck' ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf /etc/flatpak/{deck,flathub,objects}
|
rm -rf /etc/flatpak/{deck,flathub,objects}
|
||||||
|
mkdir /etc/bazzite
|
||||||
|
touch "$FLATPAK_INSTALLED_CONDITION_CHECK"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user