Skip to content

Commit dad5baf

Browse files
committed
Set v1.0
1 parent c54738e commit dad5baf

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# gitea_update_script
2+
3+
A script to automatically update [Gitea](https://gitea.io) installed on local
4+
host to the latest version from Github.
5+
6+
## Installation
7+
8+
Place in an appropriate location on local host and execute on schedule via cron.
9+
10+
## Dependencies
11+
12+
Requires some basic shell commands listed in the script, and assumes that
13+
`systemd` is used to start/stop Gitea.
14+
15+
Assumes that Gitea is executed from a symlink specified in $DIR. The actual
16+
Gitea binaries are placed in $DIR/bin. This script will automatically update
17+
the symlink when a new verson is downloaded.

gitea-update.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/sh
2+
# A shell script to automatically update Gitea
3+
# Depends only on basic shell utilities (curl, cut, grep, sed, wget)
4+
# Assumes use of systemd for Gitea start/stop
25

36
# Set location of gitea binary on local system
47
DIR=/usr/local/bin/gitea

0 commit comments

Comments
 (0)