From 457052d42bf4a8eb93685e694c39edf8af395618 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 6 Feb 2021 09:43:54 +0100 Subject: [PATCH] bundles/gitea: downloading gitea updates needs stopping it first --- bundles/gitea/items.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bundles/gitea/items.py b/bundles/gitea/items.py index 6ded2aa..1ef3a76 100644 --- a/bundles/gitea/items.py +++ b/bundles/gitea/items.py @@ -5,6 +5,9 @@ downloads = { 'triggers': { 'svc_systemd:gitea:restart', }, + 'preceded_by': { + 'action:stop_gitea', + }, }, } @@ -35,6 +38,10 @@ actions = { 'download:/usr/local/bin/gitea', }, }, + 'stop_gitea': { + 'command': 'systemctl stop gitea', + 'triggered': True, + }, } files = {