mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-17 01:11:48 +00:00
fix: check donefiles in system services + do not check flatpak donefile
This commit is contained in:
parent
d6667e85bf
commit
9452a41b31
@ -2,10 +2,6 @@
|
||||
source /etc/default/bazzite
|
||||
|
||||
DONEFILE=/etc/bazzite/hardware_setup_done
|
||||
if [[ -e "$DONEFILE" ]] ; then
|
||||
printf "Hardware was already properly set up. To run this script again, delete %s\n" "$DONEFILE"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# GLOBAL
|
||||
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
|
||||
|
@ -1,13 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
source /etc/default/bazzite
|
||||
|
||||
DONEFILE="/etc/bazzite/sys_flatpak_done"
|
||||
|
||||
if [[ -f "$DONEFILE" ]] ; then
|
||||
printf "System flatpaks were already installed. To run this script again, delete %s\n" "$DONEFILE"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if grep -qz 'fedora' <<< $(flatpak remotes); then
|
||||
/usr/lib/fedora-third-party/fedora-third-party-opt-out
|
||||
/usr/bin/fedora-third-party disable
|
||||
@ -36,5 +29,3 @@ if [[ -f '/etc/flatpak/deck' ]]; then
|
||||
fi
|
||||
|
||||
rm -rf /etc/flatpak/{deck,flathub,objects}
|
||||
mkdir -p "$(dirname "$DONEFILE")"
|
||||
touch "$DONEFILE"
|
||||
|
@ -7,6 +7,7 @@ Before=systemd-user-sessions.service jupiter-biosupdate.service jupiter-controll
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/bazzite-hardware-setup
|
||||
ConditionPathExists=!/etc/bazzite/hardware_setup_done
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in New Issue
Block a user