Script for a automatic update of gitea. Should be run locally on the gitea server.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tarteka c142f2d613 Actualizar 'updater.py' 5 months ago
.gitignore add option to build from source 8 months ago
LICENSE finalizando cambios varios 7 months ago
README.md finalizando cambios varios 7 months ago
functions.py first commit from the new own version 7 months ago
settings.py finalizando cambios varios 7 months ago
tests.py fix: add function to check the versions after semver 7 months ago
updater.py Actualizar 'updater.py' 5 months ago

README.md

Gitea Remote Updater

Script for a automatic update of gitea. Should be run locally on the gitea server.

Procedure

  • Get current Gitea Version via Gitea API.
  • Get latest Relase via GitHub API.
  • Check if there is a newer Version.
  • If true
    • Download new version, overwrite old version.

Installation

  • Uses Python 3.
  • Dependencies: requests python3 module (you can install it using pip3).
  1. Change to git user (sudo su git).
  2. Then clone the git repository.
  3. After that, please change the variables in the settings.py file.
  4. Enter the command python3 updater.py in your commandline.
  5. If you want to schedule your updates, edit your /etc/crontab file.

General Information

License: GNU General Public License

Based on Christoph Daniel Miksche (m5e.de) work. You can check the original script on Github.

New version changes:

  • Remove option build from source.
  • Use Supervisor instead of Systemd.
  • Enable two diferents download url (from github.com or gitea.io).