Nextcloud - APT Custom Package Problem

Hi All,

I’m having a problem with Nextcloud on my Truenas, current build 25.10.2.1.

When I check the shell, the containers are running in Docker, and that’s all fine.

However, for the Nextcloud installation, I need the PHP add-on from SOAP for an app within Nextcloud.

I was able to install it using:
docker exec -it -u 0 ix-nextcloud-nextcloud-1 bash -c "apt-get update && apt-get install -y libxml2-dev && docker-php-ext-install soap"

When I then restart the container with docker restart ix-nextcloud-nextcloud-1, everything is still okay.

But as soon as my Truenas is shut down at night for a backup (which unfortunately can’t be done any other way because I have a PCI passthrough device connected), I can only back up Truenas when it’s shut down.

After TrueNAS restarts
By default, I can only install four APT packages via the application settings. My question is, how can I permanently add PHPSoap to the image? I really don’t want to have to add it every time.

I’ve considered using a post-reboot script, but there must be a more elegant way to do this, right?

I would be very grateful for any suggestions.

Open a feature request at the truenas/apps repo on Github and maybe the package will be added.

1 Like