Skip to content

Commit

Permalink
Set v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
johnstonjs committed May 30, 2019
1 parent c54738e commit dad5baf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# gitea_update_script

A script to automatically update [Gitea](https://gitea.io) installed on local
host to the latest version from Github.

## Installation

Place in an appropriate location on local host and execute on schedule via cron.

## Dependencies

Requires some basic shell commands listed in the script, and assumes that
`systemd` is used to start/stop Gitea.

Assumes that Gitea is executed from a symlink specified in $DIR. The actual
Gitea binaries are placed in $DIR/bin. This script will automatically update
the symlink when a new verson is downloaded.
3 changes: 3 additions & 0 deletions gitea-update.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
# A shell script to automatically update Gitea
# Depends only on basic shell utilities (curl, cut, grep, sed, wget)
# Assumes use of systemd for Gitea start/stop

# Set location of gitea binary on local system
DIR=/usr/local/bin/gitea
Expand Down

0 comments on commit dad5baf

Please sign in to comment.