fix: check donefiles in system services + do not check flatpak donefile

This commit is contained in:
tulili 2023-08-27 23:04:51 -03:00
parent d6667e85bf
commit 9452a41b31
No known key found for this signature in database
3 changed files with 1 additions and 13 deletions

View File

@ -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)"

View File

@ -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"

View File

@ -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