From 075ffd35b7e874ec832c7ecedb1e49946c96e47d Mon Sep 17 00:00:00 2001 From: ArtikusHG <24320212+ArtikusHG@users.noreply.github.com> Date: Sun, 24 Sep 2023 16:29:26 +0000 Subject: [PATCH] Fix #117 (flatpak update failing) (#122) * fix: flatpak update service failing * fix: flatpak update service failing (user) --- files/usr/lib/systemd/system/flatpak-system-update.service | 6 ++---- files/usr/lib/systemd/user/flatpak-user-update.service | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/files/usr/lib/systemd/system/flatpak-system-update.service b/files/usr/lib/systemd/system/flatpak-system-update.service index 0c778e3b..0c7e4ecf 100644 --- a/files/usr/lib/systemd/system/flatpak-system-update.service +++ b/files/usr/lib/systemd/system/flatpak-system-update.service @@ -5,7 +5,5 @@ Wants=network-online.target After=network-online.target [Service] -Type=simple -ExecStartPre=/usr/bin/flatpak --system uninstall --unused -y --noninteractive -ExecStart=/usr/bin/flatpak --system update -y --noninteractive -ExecStartPost=/usr/bin/flatpak --system repair +Type=oneshot +ExecStart=/usr/bin/flatpak --system uninstall --unused -y --noninteractive ; /usr/bin/flatpak --system update -y --noninteractive ; /usr/bin/flatpak --system repair diff --git a/files/usr/lib/systemd/user/flatpak-user-update.service b/files/usr/lib/systemd/user/flatpak-user-update.service index 23816fd0..2c98c52f 100644 --- a/files/usr/lib/systemd/user/flatpak-user-update.service +++ b/files/usr/lib/systemd/user/flatpak-user-update.service @@ -5,7 +5,5 @@ Wants=network-online.target After=network-online.target [Service] -Type=simple -ExecStartPre=/usr/bin/flatpak --user uninstall --unused -y --noninteractive -ExecStart=/usr/bin/flatpak --user update -y --noninteractive -ExecStartPost=/usr/bin/flatpak --user repair +Type=oneshot +ExecStart=/usr/bin/flatpak --user uninstall --unused -y --noninteractive ; /usr/bin/flatpak --user update -y --noninteractive ; /usr/bin/flatpak --user repair