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

The Scunthorpe Problem

I was talking with a friend recently about an email of theirs running afoul (🐔) of another aggressive filter system, because they dared to to talk with someone called Dickson. I know right, they’re the absolute worst. For those unfamiliar, this is the The…

via Rubenerd November 21, 2024

In which Neil is surprised by the lack of an HDMI cable

Some modern technology decisions baffle me. Today, I was sitting in a meeting room. In the room was my friend, with her laptop. Her laptop has an HDMI port. Also in the room was a screen, onto which my friend wished to display her laptop’s desktop. The screen …

via Neil's blog November 19, 2024

Helm: JSON schema generation

Helm charts support the inclusion of a values.schema.json file to validate values.yaml. Documentation: https://helm.sh/docs/topics/charts/#schema-files A JSON schema is akin to defining the structure of and type-annotating a JSON file. It helps to “shift lef…

via not just serendipity November 14, 2024