Feature request: post-update script for otto update mechanism

I really like that you can update OttoFMS with just command line instruction. So far, it worked every time for me.
I have a request for a small change in that script. If a post-update.sh script is present in a specific location, execute it. Of course I can make a shell script that calls the OttoFMS update mechanism, but I think the design is better, because that would only call the post-update shell script if the OttoFMS update is successful.

The reason why I would like it, is because e.g. on Ubuntu the folder /opt/FileMaker/FileMaker Server/Data/Backups/OttoFMS/file-manager-root contains a link to the Backups folder that I want to delete after each OttoFMS update. It’s easy to guess why: I like the links, but not the circular one, my offsite backup system does not like it very much.

If the file is not present, everything works like now, if it is, this is an elegant way to extend the update mechanism with personalised code.
Would this be an easy one to implement, or does anyone have alternatives?

I’m not sure how feasible this would be to fix on the Proof+Geist side since it could be a complex change with side effects that affect everyone, but the script we host for you to run the CLI upgrades is nothing special. If you’re writing your own shell scripts, you could simply download our copy and modify it for your needs.

Makes sense, Eric. I think I’ll go for a custom renewal script that removes the link files after doing the standard upgrade instruction.

1 Like