diff --git a/update-gitea.pl b/update-gitea.pl index 0bf29dc..9a8fc6c 100755 --- a/update-gitea.pl +++ b/update-gitea.pl @@ -92,11 +92,18 @@ if ( $tag gt $gitea_current_version || $alphanum_ver == 1 ) { =devel # Because doing this in perl would be a memory hog `xz -d --keep /home/gitea/bin/$download_filename` + + # Stop gitea service # rename unpacked binary to gitea or symlink?? + # chown gitea.gitea binary + # chmod 754 gitea # Check if we can start gitea - # If can start then end - # If no start restore the backup - # Notifications + # If can start then + # Remove old binary (backup done at beginning) + # Rename new binary to gitea + # Remove .xz file + # Notify success notify(1) + # If no start notify and end & notify fail notify(0) =cut }