From 0904a61ddc12e0083faccb8c343899eda932b550 Mon Sep 17 00:00:00 2001 From: Christoph Miksche Date: Fri, 31 May 2019 23:24:06 +0200 Subject: [PATCH] docs: update readme.md and change name in files Update the README.md and change the name in the files from "Gitea Remote Updater" to "Gitea Auto Updater" because the script should be run on the local system. --- README.md | 16 ++++++++++++---- functions.py | 2 +- settings.py | 2 +- tests.py | 2 +- updater.py | 2 +- 5 files changed, 16 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 226215c..5a3a2eb 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,21 @@ -# Gitea Remote Updater +# Gitea Auto Updater Script for a automatic update of gitea. Should be run locally on the gitea server. Has options for updating via new binary file or build from source. ## Procedure -* Get Gitea Version via Gitea API +* Get Gitea Version from the Gitea CLI and if that fails from the Gitea API * Get latest Relase via GitHub API * Check if there is a newer Version -* If true - * Download new version, overwrite old version +* If there is a newer Version: + * If binary file was selected: + * Download new version + * Check sha256 + * Overwrite old version + * If build from source is active: + * Checkout new release branch + * Build binary + * Overwrite old binary + ## General Information License: GNU General Public License diff --git a/functions.py b/functions.py index b06e06a..ee68d05 100644 --- a/functions.py +++ b/functions.py @@ -1,5 +1,5 @@ ''' -Gitea Remote Updater +Gitea Auto Updater Copyright 2018, 2019 The Gitea-Auto-Update Authors All rights reserved. diff --git a/settings.py b/settings.py index 41704dc..03d1913 100644 --- a/settings.py +++ b/settings.py @@ -1,5 +1,5 @@ ''' -Gitea Remote Updater +Gitea Auto Updater Copyright 2018, 2019 The Gitea-Auto-Update Authors All rights reserved. diff --git a/tests.py b/tests.py index 11f01fc..7548757 100644 --- a/tests.py +++ b/tests.py @@ -1,5 +1,5 @@ ''' -Gitea Remote Updater +Gitea Auto Updater Copyright 2019 The Gitea-Auto-Update Authors All rights reserved. diff --git a/updater.py b/updater.py index 8670ba0..0df9c1d 100644 --- a/updater.py +++ b/updater.py @@ -1,5 +1,5 @@ ''' -Gitea Remote Updater +Gitea Auto Updater Copyright 2018, 2019 The Gitea-Auto-Update Authors All rights reserved.