From 5a7435e06017764223b73b12161cad3f9feace87 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 12 Apr 2025 17:17:07 +0300 Subject: [PATCH] 4 --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index eae3120..1ba7eb0 100644 --- a/Makefile +++ b/Makefile @@ -78,6 +78,12 @@ download-gitea: bash download-gitea.sh +upgrade: stop backup cleanup-binary download-gitea install-gitea-binary start + +cleanup-binary: + stat gitea-linux-amd64 && rm -vf gitea-linux-amd64 ; true +backup: + echo "Dummy backup" install-gitea-binary: cp -vf gitea-linux-amd64 /usr/local/bin/gitea chmod +x /usr/local/bin/gitea