setup.sh: Disable podman-auto-update service/timer

This commit is contained in:
Viyurz 2024-11-01 10:05:45 +01:00
parent 4f587f14d2
commit 56375410ee
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -11,7 +11,8 @@ while ! [[ "$podman_mode" =~ ^(rootful|rootless)$ ]]; do
done done
declare -a podman_units=(podman.service podman.socket podman-auto-update.service podman-auto-update.timer podman-clean-transient.service podman-restart.service) declare -a en_podman_units=(podman.service podman.socket podman-clean-transient.service podman-restart.service)
declare -a dis_podman_units=(podman-auto-update.service podman-auto-update.timer)
if [[ "$podman_mode" == "rootless" ]]; then if [[ "$podman_mode" == "rootless" ]]; then
@ -19,13 +20,15 @@ if [[ "$podman_mode" == "rootless" ]]; then
sudo loginctl enable-linger "$USER" sudo loginctl enable-linger "$USER"
sudo systemctl disable --now "${podman_units[@]}" sudo systemctl disable --now "${en_podman_units[@]}" "${dis_podman_units[@]}"
systemctl --user enable --now "${podman_units[@]}" systemctl --user enable --now "${en_podman_units[@]}"
systemctl --user disable --now "${dis_podman_units[@]}"
else else
sudo apt install -y aardvark-dns borgbackup cifs-utils curl nftables nginx podman podman-compose python3-mako sudo apt install -y aardvark-dns borgbackup cifs-utils curl nftables nginx podman podman-compose python3-mako
systemctl --user disable --now "${podman_units[@]}" systemctl --user disable --now "${en_podman_units[@]}" "${dis_podman_units[@]}"
sudo systemctl enable --now "${podman_units[@]}" sudo systemctl enable --now "${en_podman_units[@]}"
sudo systemctl disable --now "${dis_podman_units[@]}"
fi fi