Add has_update update method in README

This commit is contained in:
Cyrille L 2024-09-18 11:44:00 +02:00
parent 8f30c9ed30
commit 931ddcaea2
1 changed files with 10 additions and 1 deletions

View File

@ -22,7 +22,7 @@ repo = f"https://api.github.com/repos/{owner}/{name}/releases/latest"
``` ```
cd /srv cd /srv
git clone https://forge.a-lec.org/cominfra/toot.git git clone https://forge.a-lec.org/cominfra/toot.git
chmod +x toot/tools/has_update chmod +x /srv/toot/tools/has_update
``` ```
### Usage ### Usage
@ -41,3 +41,12 @@ no argument, *has_update* ouputs a message ONLY if an update is available.
cd /home/mastodon/live cd /home/mastodon/live
/srv/toot/tools/has_update /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
```