Skip to content

Automatically install SSO Saml "app" after installing Nextcloud

Using Nextcloud's occ CLI, it should be possible to enable an app:

www-data@roiling-zorse-nextcloud-58b848fcc5-c5x7l:~/html$ php occ
Nextcloud 14.0.2

Usage:
  command [options] [arguments]

...

 app
  app:check-code                      check code to be compliant
  app:disable                         disable an app
  app:enable                          enable an app
  app:getpath                         Get an absolute path to the app directory
  app:install                         install an app
  app:list                            List all available apps

Find a way to do this in a post-install hook