feat: Remove update services in preparation for new ublue updater.

feat: Add script for updater to handle paru in bazzite-arch.
This commit is contained in:
Kyle Gospodnetich 2023-06-29 00:23:00 -07:00
parent a240477fb7
commit e2a1d416d1
9 changed files with 7 additions and 54 deletions

View File

@ -54,8 +54,6 @@ RUN pip install --prefix=/usr yafti && \
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_kylegospo-hl2linux-selinux.repo && \
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/user.conf && \
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/system.conf && \
sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \
systemctl enable rpm-ostreed-automatic.timer && \
systemctl enable input-remapper.service && \
rm -rf \
/tmp/* \

View File

@ -1,7 +0,0 @@
[Unit]
Description=distrobox-upgrade Automatic Update
[Service]
Type=simple
ExecStart=/usr/bin/distrobox-upgrade --all
StandardOutput=null

View File

@ -139,11 +139,6 @@ screens:
show_terminal: true
package_manager: yafti.plugin.run
groups:
Automatic Distrobox Updates:
description: Updates all Distrobox containers automatically
default: true
packages:
- Enable Automatic Updates: systemctl enable --user --now distrobox-upgrade-automatic.timer
Automatic Duplicate File Removal:
description: Flattens duplicate files to take up no more space than a single copy, a considerable space savings for wine prefixes and compatdata
default: true

View File

@ -1,8 +0,0 @@
[Unit]
Description=distrobox-upgrade Automatic Update
[Service]
Type=simple
ExecStart=/usr/bin/distrobox-upgrade --all
ExecStartPost=/usr/bin/distrobox-enter -n bazzite-arch -- ' paru -Syu --noconfirm'
StandardOutput=null

View File

@ -1,9 +0,0 @@
[Unit]
Description=distrobox-upgrade Automatic Update Trigger
[Timer]
OnBootSec=1h
OnUnitInactiveSec=1d
[Install]
WantedBy=timers.target

View File

@ -1,12 +0,0 @@
[Unit]
Description=flatpak Automatic Update
Documentation=man:flatpak(1)
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/flatpak update -y
[Install]
WantedBy=multi-user.target

View File

@ -1,10 +0,0 @@
[Unit]
Description=flatpak Automatic Update Trigger
Documentation=man:flatpak(1)
[Timer]
OnBootSec=1h
OnUnitInactiveSec=1d
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,7 @@
#!/usr/bin/bash
if [[ $(distrobox list | grep bazzite-arch) ]]; then
/usr/bin/distrobox-enter -n bazzite-arch -- ' paru -Syu --noconfirm'
else
echo "Update skipped: bazzite-arch not installed"
fi

View File

@ -146,7 +146,6 @@ screens:
- Export Steam: distrobox-enter -n bazzite-arch -- ' distrobox-export --app steam'
- Export Lutris: distrobox-enter -n bazzite-arch -- ' distrobox-export --app lutris'
- Export Protontricks: distrobox-enter -n bazzite-arch -- ' distrobox-export --app protontricks'
- Enable Automatic Updates: systemctl enable --user --now distrobox-upgrade-automatic.timer
Automatic Duplicate File Removal:
description: Flattens duplicate files to take up no more space than a single copy, a considerable space savings for wine prefixes and compatdata
default: true