diff --git a/tools/README.md b/tools/README.md index c0232ad..864ab00 100644 --- a/tools/README.md +++ b/tools/README.md @@ -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 +```