nextcloud-upgrade OpenRC Service

By chimo on (updated on )

My Incus containers upgrade automatically on a schedule. This has been running fine for a couple of years now, except that Nextcloud has the annoying habit of presenting a "click here to upgrade" interstitial page instead of, you know, just doing the upgrade.

There might be a way to tell Nextcloud to apply the upgrade automatically, but in a pinch I just wrote an OpenRC service that runs `occ upgrade` at bootup after the "nextcloud" service starts.

#!/sbin/openrc-run

# Run `occ upgrade` at bootup after nextcloud service is started.

depends() {
    after nextcloud
}

start() {
    su nextcloud -s /bin/sh -c '/usr/bin/occ upgrade --no-interaction'
}

# no-op
stop() { true; }

On a related note, I've been thinking of looking for Nextcloud alternatives that just do file sync since I'm not using much of the other features Nextcloud offers, really. This replacement would ideally have:

  • A web client
  • An Android client
  • A cli-only desktop client (something like `nextcloudcmd`)
  • I'd rather have a server<->clients implementation rather than a "mesh" thing
  • No other features except file sync.

I don't really have any issues with Nextcloud, but if there's something leaner out there I'd be interested in checking it out. If not to switch, then just for fun & learning.

Recent articles from blogs I follow

I think fedizens should be able to disable replies to some or all of their posts

Every so often, there is a bit of a debate in the fediverse about whether a person should be able to make a post to which other users cannot reply. Yes, they should My view is simple: yes, they should. It is no different to running a website and not offering…

via Neil's blog December 7, 2024

Adding Encrypted Swap and a Userspace OOM-Killer

When setting up my Ideapad, I didn't configure swap because I wanted to avoid reducing the (already unknown) lifetime of it's eMMC storage. This, however, has proven to be a mistake - the Ideapad only has 4GB of RAM and I'm quite good at accid…

via www.bentasker.co.uk December 7, 2024

Advent of Code: Day 4

Link to Day #4 puzzle.

via not just serendipity December 6, 2024