#pyramid has had some updates with bugfixes since the v1.0.0 release, but there was no easy way to update the version you had running in your server that was as easy as the installation process.

Now we have the easiest thing possible, a button:

You click and it will update your server in place.

The only catch is that you have to update manually once to get the button.

If you've installed pyramid using the easy.sh script you can do that by opening your server terminal and pasting this:

systemctl stop pyramid

cd pyramid

wget https://github.com/fiatjaf/pyramid/releases/download/v1.0.5/pyramid-exe

chmod +x pyramid-exe

systemctl restart pyramid

nostr:nevent1qvzqqqqqqypzqwlsccluhy6xxsr6l9a9uhhxf75g85g8a709tprjcn4e42h053vaqydhwumn8ghj7un9d3shjtnhv4ehgetjde38gcewvdhk6tcpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhsqgzz6ft7cfafp3dw29cyewc4cqhv59cxn392vesfexg0szv73gl06c4ev03m

Reply to this note

Please Login to reply.

Discussion

I love this. But it also scares me: a web button doing root things?

Thank you!

One small caution on your manual update script: wget usually doesn't overwrite files by default.

If pyramid-exe already exists in that folder, wget will often save the new one as pyramid-exe.1 to be safe. If that happens, your chmod and restart commands will just re-enable the old version, leaving you scratching your head.

To be absolutely sure it replaces the old binary, add -O (output document) to force the overwrite:

systemctl stop pyramid

cd pyramid

wget -O pyramid-exe https://github.com/fiatjaf/pyramid/releases/download/v1.0.5/pyramid-exe

chmod +x pyramid-exe

systemctl restart pyramid

But then I forgot to

sudo systemctl stop pyramid

Much to Gemini's amusement.

Thank you, you are right.

Although I'm sure I had the -O flag there at some point, but obviously not in the version of the script I pasted here.

You're welcome, I wouldn't have noticed myself, but with Gemini shepherding me through the setup after basic VPS provisioning to success, it was something worth reporting.

Seems to me there's a lot more servers naive users can set up with the aide, addressing some of those decentralisation concerns.