Reopening since we get this nc-setup-apps error on stackspin.net about the calendar not beeing compatible with NC23:
❯ kc -n stackspin-apps logs nc-setup-apps-zpnzs # Debug: place the json file in a persistent location for reusecp /var/local/onlyoffice-config.json /var/www/html/occ="/var/www/html/occ"# Enable app store so we can run `install` and `enable` commandsphp $occ config:system:set appstoreenabled --type boolean --value trueSystem config value appstoreenabled set to boolean true# -- Begin sociallogin# Only install sociallogin if it's not installed alreadyif ! php $occ app:list | grep -q sociallogin; then php $occ app:install sociallogin --keep-disabled --no-interactionfi# Enable sociallogin appphp $occ app:enable socialloginsociallogin already enabled # -- end sociallogin# -- Begin onlyoffice# Only install onlyoffice if it's not installed alreadyif ! php $occ app:list | grep -q onlyoffice; then php $occ app:install onlyoffice --keep-disabled --no-interactionfi# Enable onlyoffice appphp $occ app:enable onlyofficeonlyoffice already enabled # -- end onlyoffice# -- Begin calendar# Only install calendar if it's not installed alreadyif ! php $occ app:list | grep -q calendar; then php $occ app:install calendar --keep-disabled --no-interactionfi# Enable calendar appphp $occ app:enable calendarApp "Calendar" cannot be installed because it is not compatible with this version of the server.
So we can't pin NC app versions unfortunatly, there's no support for this in occ app:install:
www-data@7a49aabe5ed6:~/html$ ./occ app:install --helpDescription: install an appUsage: app:install [options] [--] <app-id>Arguments: app-id install the specified appOptions: --keep-disabled don't enable the app afterwards -f, --force install the app regardless of the Nextcloud version requirement -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question --no-warnings Skip global warnings, show command output only -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
So our only bet is to update apps on a regular base (either by the nc-nextcloud-cron cronjob or in nc-setup-apps batch job