Add has_update update method in README
This commit is contained in:
parent
8f30c9ed30
commit
931ddcaea2
|
@ -22,7 +22,7 @@ repo = f"https://api.github.com/repos/{owner}/{name}/releases/latest"
|
|||
```
|
||||
cd /srv
|
||||
git clone https://forge.a-lec.org/cominfra/toot.git
|
||||
chmod +x toot/tools/has_update
|
||||
chmod +x /srv/toot/tools/has_update
|
||||
```
|
||||
|
||||
### Usage
|
||||
|
@ -41,3 +41,12 @@ no argument, *has_update* ouputs a message ONLY if an update is available.
|
|||
cd /home/mastodon/live
|
||||
/srv/toot/tools/has_update
|
||||
```
|
||||
|
||||
### Update has_update from git
|
||||
At that time, you can perform an update using these commands:
|
||||
```
|
||||
cd /srv/toot/
|
||||
git reset --hard # has_update was chmod
|
||||
git pull
|
||||
chmod +x /srv/toot/tools/has_update
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue