Occ disable and remove apps at docker compose startup

Support intro

Remove apps at docker compose up with occ and hook folders

Nextcloud version: nextcloud:latest
Operating system and version: RHEL 8 x64
Apache or nginx version: nginx:latest
PHP version: 8.2.23

The issue you are facing:
None of the hooks I am attempting to use are working

Is this the first time you’ve seen this error? : Y

Steps to replicate it:

  1. docker compose up
  2. proper folder structure and shell file in the right locations
  3. watch logs

The output of your Nextcloud log in Admin > Logging:

[PHP] Error: fopen(/var/www/html/config/config.php): Failed to open stream: No such file or directory at /var/www/html/lib/private/Config.php#221
	from ? by -- at Sep 15, 2024, 10:34:03 AM

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'overwritewebroot' => '/nextcloud',
  'upgrade.disable-web' => true,
  'passwordsalt' => 'iW8qXpp4aFJ0+r/7E2zU2mddhatcnx',
  'secret' => 'Kt5vFL9Vg0dXAcrPQqWAgrhpDHEA56pbTWKgUu4YJ1CylR4B',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'www.example.net',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '29.0.6.1',
  'overwrite.cli.url' => 'http://localhost/nextcloud',
  'dbname' => 'nextcloud_data',
  'dbhost' => 'mariadb',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud_dbuser',
  'dbpassword' => 'mysql_password',
  'installed' => true,
  'instanceid' => 'occgqbthroo7',
);

The output of your Apache/nginx/system log in /var/log/____:

2024/09/15 15:35:08 [warn] 29#29: *5 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/1/00/0000000001 while reading upstream, client: 99.99.99.99, server: www.example.net, request: "GET /portainer/main.33e0a59057a6399dbb8d.css HTTP/1.1", upstream: "https://192.168.16.3:9443/main.33e0a59057a6399dbb8d.css", host: "www.example.net", referrer: "https://www.example.net/portainer/"
2024/09/15 15:35:08 [warn] 29#29: *6 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/2/00/0000000002 while reading upstream, client: 99.99.99.99, server: www.example.net, request: "GET /portainer/vendor.9b54dbb269b29babe8e2.js HTTP/1.1", upstream: "https://192.168.16.3:9443/vendor.9b54dbb269b29babe8e2.js", host: "www.example.net", referrer: "https://www.example.net/portainer/"
2024/09/15 15:35:08 [warn] 29#29: *7 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/3/00/0000000003 while reading upstream, client: 99.99.99.99, server: www.example.net, request: "GET /portainer/main.f2b632d7a448eaa5d9e6.js HTTP/1.1", upstream: "https://192.168.16.3:9443/main.f2b632d7a448eaa5d9e6.js", host: "www.example.net", referrer: "https://www.example.net/portainer/"
2024/09/15 15:35:09 [error] 29#29: *7 open() "/etc/nginx/html/locales/en-US/translation.json" failed (2: No such file or directory), client: 99.99.99.99, server: www.example.net, request: "GET /locales/en-US/translation.json HTTP/1.1", host: "www.example.net", referrer: "https://www.example.net/portainer/"
2024/09/15 15:35:09 [error] 29#29: *6 open() "/etc/nginx/html/locales/en/translation.json" failed (2: No such file or directory), client: 99.99.99.99, server: www.example.net, request: "GET /locales/en/translation.json HTTP/1.1", host: "www.example.net", referrer: "https://www.example.net/portainer/"
2024/09/15 15:35:59 [error] 29#29: *1 open() "/etc/nginx/html/locales/en/translation.json" failed (2: No such file or directory), client: 99.99.99.99, server: www.example.net, request: "GET /locales/en/translation.json HTTP/1.1", host: "www.example.net", referrer: "https://www.example.net/portainer/"
2024/09/15 15:35:59 [error] 29#29: *7 open() "/etc/nginx/html/locales/en-US/translation.json" failed (2: No such file or directory), client: 99.99.99.99, server: www.example.net, request: "GET /locales/en-US/translation.json HTTP/1.1", host: "www.example.net", referrer: "https://www.example.net/portainer/"
2024/09/15 15:38:30 [warn] 29#29: *50 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/4/00/0000000004 while reading upstream, client: 99.99.99.99, server: www.example.net, request: "GET /portainer/api/motd HTTP/1.1", upstream: "https://192.168.16.3:9443/api/motd", host: "www.example.net", referrer: "https://www.example.net/portainer/"
2024/09/15 15:39:47 [warn] 29#29: *53 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/5/00/0000000005 while reading upstream, client: 99.99.99.99, server: www.example.net, request: "GET /nextcloud/apps/firstrunwizard/img/Nextcloud.webm HTTP/1.1", upstream: "http://192.168.16.5:80/apps/firstrunwizard/img/Nextcloud.webm", host: "www.example.net"
2024/09/15 15:39:59 [warn] 29#29: *49 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/6/00/0000000006 while reading upstream, client: 99.99.99.99, server: www.example.net, request: "GET /nextcloud/settings/apps/list HTTP/1.1", upstream: "http://192.168.16.5:80/settings/apps/list", host: "www.example.net"
2024/09/15 15:40:00 [warn] 29#29: *53 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/7/00/0000000007 while reading upstream, client: 99.99.99.99, server: www.example.net, request: "GET /nextcloud/settings/apps/list HTTP/1.1", upstream: "http://192.168.16.5:80/settings/apps/list", host: "www.example.net"
2024/09/15 15:59:21 [warn] 29#29: *314 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/8/00/0000000008 while reading upstream, client: 99.99.99.99, server: www.example.net, request: "GET /nextcloud/apps/logreader/js/logreader-main.mjs?v=75be6180-0 HTTP/1.1", upstream: "http://192.168.16.5:80/apps/logreader/js/logreader-main.mjs?v=75be6180-0", host: "www.example.net"
2024/09/15 16:01:08 [warn] 29#29: *429 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/9/00/0000000009 while reading upstream, client: 99.99.99.99, server: www.example.net, request: "GET /portainer/main.33e0a59057a6399dbb8d.css HTTP/1.1", upstream: "https://192.168.16.3:9443/main.33e0a59057a6399dbb8d.css", host: "www.example.net", referrer: "https://www.example.net/portainer/"
2024/09/15 16:01:09 [error] 29#29: *426 open() "/etc/nginx/html/locales/en/translation.json" failed (2: No such file or directory), client: 99.99.99.99, server: www.example.net, request: "GET /locales/en/translation.json HTTP/1.1", host: "www.example.net", referrer: "https://www.example.net/portainer/"
2024/09/15 16:01:09 [error] 29#29: *429 open() "/etc/nginx/html/locales/en-US/translation.json" failed (2: No such file or directory), client: 99.99.99.99, server: www.example.net, request: "GET /locales/en-US/translation.json HTTP/1.1", host: "www.example.net", referrer: "https://www.example.net/portainer/"

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

{"reqId":"S7p7DNDwTcyApkeU6hLu","level":3,"time":"2024-09-15T15:34:03+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"/nextcloud/occ","message":"fopen(/var/www/html/config/config.php): Failed to open stream: No such file or directory at /var/www/html/lib/private/Config.php#221","userAgent":"--","version":"29.0.6.1","data":{"app":"PHP"}}

I have no idea what I’m doing yet so I have two folder in my docker project folder;
-example.net
–app-hooks
—before-starting
—post-installation
–kc
–nginx
–sociallogin

Here is the removeapps.sh file

./occ app:disable activity
./occ app:disable bruteforcesettings
./occ app:disable circles
./occ app:disable cloud_federation_api
./occ app:disable comments
./occ app:disable contactsinteraction
./occ app:disable dashboard
./occ app:disable dav
./occ app:disable encryption
./occ app:disable federatedfilesharing
./occ app:disable federation
./occ app:disable files_downloadlimit
./occ app:disable files_reminders
./occ app:disable files_sharing
./occ app:disable files_trashbin
./occ app:disable files_versions
./occ app:disable firstrunwizard
./occ app:disable lookup_server_connector
./occ app:disable nextcloud_announcements
./occ app:disable notifications
./occ app:disable oauth2
./occ app:disable privacy
./occ app:disable recommendations
./occ app:disable related_resources
./occ app:disable sharebymail
./occ app:disable support
./occ app:disable survey_client
./occ app:disable suspicious_login
./occ app:disable systemtags
./occ app:disable twofactor_backupcodes
./occ app:disable twofactor_totp
./occ app:disable updatenotification
./occ app:disable user_ldap
./occ app:disable user_status
./occ app:disable viewer
./occ app:disable weather_status
./occ app:disable workflowengine
cp -R /tmp/sociallogin /var/www/html/apps/
./occ app:install sociallogin
./occ app:remove activity
./occ app:remove bruteforcesettings
./occ app:remove circles
./occ app:remove cloud_federation_api
./occ app:remove comments
./occ app:remove contactsinteraction
./occ app:remove dashboard
./occ app:remove dav
./occ app:remove encryption
./occ app:remove federatedfilesharing
./occ app:remove federation
./occ app:remove files_downloadlimit
./occ app:remove files_reminders
./occ app:remove files_sharing
./occ app:remove files_trashbin
./occ app:remove files_versions
./occ app:remove firstrunwizard
./occ app:remove lookup_server_connector
./occ app:remove nextcloud_announcements
./occ app:remove notifications
./occ app:remove oauth2
./occ app:remove privacy
./occ app:remove recommendations
./occ app:remove related_resources
./occ app:remove sharebymail
./occ app:remove support
./occ app:remove survey_client
./occ app:remove suspicious_login
./occ app:remove systemtags
./occ app:remove twofactor_backupcodes
./occ app:remove twofactor_totp
./occ app:remove updatenotification
./occ app:remove user_ldap
./occ app:remove user_status
./occ app:remove viewer
./occ app:remove weather_status
./occ app:remove workflowengine
./occ app:enable sociallogin

Here is the nextcloud part of my docker-compose.yml file

  nextcloud:
    image: nextcloud:latest
    container_name: nextcloud
    restart: unless-stopped
    environment:
      MYSQL_PASSWORD: mysql_password
      MYSQL_DATABASE: nextcloud_data
      MYSQL_USER: nextcloud_dbuser
      MYSQL_HOST: mariadb
      OVERWRITEWEBROOT: /nextcloud
      NEXTCLOUD_ADMIN_USER: admin
      NEXTCLOUD_ADMIN_PASSWORD: adminpassword
      NEXTCLOUD_HOSTNAME: www.example.net
      NEXTCLOUD_TRUSTED_DOMAINS: www.example.net
    volumes:
      - ./nextcloud:/var/www/html
      - ./app-hooks/post-installation:/docker-entrypoint-hooks.d/post-installation
      - ./sociallogin:/tmp/sociallogin
    depends_on:
      - mariadb
    networks:
      - nextcloud-net

The errors I see at docker compose up

nextcloud  | => Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/post-installation
nextcloud  | ==> Running the script (cwd: /var/www/html): "/docker-entrypoint-hooks.d/post-installation/removeapps.sh"
nextcloud  | No such app enabled: activity
nextcloud  | No such app enabled: bruteforcesettings
nextcloud  | No such app enabled: circles
nextcloud  | No such app enabled: cloud_federation_api
nextcloud  | No such app enabled: comments
nextcloud  | No such app enabled: contactsinteraction
nextcloud  | No such app enabled: dashboard
nextcloud  | No such app enabled: dav
nextcloud  | No such app enabled: encryption
nextcloud  | No such app enabled: federatedfilesharing
nextcloud  | No such app enabled: federation
nextcloud  | No such app enabled: files_downloadlimit
nextcloud  | No such app enabled: files_reminders
nextcloud  | No such app enabled: files_sharing
nextcloud  | No such app enabled: files_trashbin
nextcloud  | No such app enabled: files_versions
nextcloud  | No such app enabled: firstrunwizard
nextcloud  | No such app enabled: lookup_server_connector
nextcloud  | No such app enabled: nextcloud_announcements
nextcloud  | No such app enabled: notifications
nextcloud  | No such app enabled: oauth2
nextcloud  | No such app enabled: privacy
nextcloud  | No such app enabled: recommendations
nextcloud  | No such app enabled: related_resources
nextcloud  | No such app enabled: sharebymail
nextcloud  | No such app enabled: support
nextcloud  | No such app enabled: survey_client
nextcloud  | No such app enabled: suspicious_login
nextcloud  | No such app enabled: systemtags
nextcloud  | No such app enabled: twofactor_backupcodes
nextcloud  | No such app enabled: twofactor_totp
nextcloud  | No such app enabled: updatenotification
nextcloud  | No such app enabled: user_ldap
nextcloud  | No such app enabled: user_status
nextcloud  | No such app enabled: viewer
nextcloud  | No such app enabled: weather_status
nextcloud  | No such app enabled: workflowengine
nextcloud  | Error: Could not download app sociallogin
 is not installedvity
 is not installedeforcesettings
 is not installedles
 is not installedd_federation_api
 is not installedents
 is not installedactsinteraction
 is not installedboard
 is not installed
 is not installedyption
 is not installedratedfilesharing
 is not installedration
 is not installeds_downloadlimit
 is not installeds_reminders
 is not installeds_sharing
 is not installeds_trashbin
 is not installeds_versions
 is not installedtrunwizard
 is not installedup_server_connector
 is not installedcloud_announcements
 is not installedfications
 is not installedh2
 is not installedacy
 is not installedmmendations
 is not installedted_resources
 is not installedebymail
 is not installedort
 is not installedey_client
 is not installedicious_login
 is not installedemtags
 is not installedactor_backupcodes
 is not installedactor_totp
 is not installedtenotification
 is not installed_ldap
 is not installed_status
 is not installeder
 is not installedher_status
 is not installedflowengine
nextcloud  | sociallogin 5.6.6 enabled
nextcloud  | ==> Finished the script: "/docker-entrypoint-hooks.d/post-installation/removeapps.sh"
nextcloud  | Initializing finished
nextcloud  | => Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting

Making some progress but I think I removed an app that is required.

When browsing to the site it wants to create an admin user, which tells me it did not read the environment variables set in the docker-compose.yml file for the admin username and password. Here is the nextcloud.log data

{"reqId":"4HMlfEhWJ3EfF4h0ePWq","level":3,"time":"2024-09-15T17:20:28+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"/nextcloud/occ","message":"fopen(/var/www/html/config/config.php): Failed to open stream: No such file or directory at /var/www/html/lib/private/Config.php#221","userAgent":"--","version":"","data":{"app":"PHP"}}
{"reqId":"PtfAs9uJEXW1Ff6iDNa2","level":3,"time":"2024-09-15T17:22:09+00:00","remoteAddr":"99.99.99.99","user":"admin","app":"index","method":"POST","url":"/nextcloud/index.php","message":"App not found","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36","version":"29.0.6.1","exception":{"Exception":"Exception","Message":"App not found","Code":0,"Trace":[{"file":"/var/www/html/lib/private/IntegrityCheck/Checker.php","line":569,"function":"getAppPath","class":"OC\\IntegrityCheck\\Helpers\\AppLocator","type":"->","args":["\r"]},{"file":"/var/www/html/core/Controller/SetupController.php","line":114,"function":"runInstanceVerification","class":"OC\\IntegrityCheck\\Checker","type":"->","args":[]},{"file":"/var/www/html/core/Controller/SetupController.php","line":75,"function":"finishSetup","class":"OC\\Core\\Controller\\SetupController","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"run","class":"OC\\Core\\Controller\\SetupController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/IntegrityCheck/Helpers/AppLocator.php","Line":47,"message":"App not found","exception":{},"CustomMessage":"App not found"}}

It’s not real clear what app is missing to setup the site. Any ideas?

NEXTCLOUD_ADMIN_* are only used once (at initial install time) then never again. Unless your Docker logs says “New nextcloud instance” than those variables won’t be used.

What are you trying to accomplish? You can’t disable apps like dav or viewer.

Here’s the list of apps that are shipped (note: not necessarily enabled):

Here’s the list of shipped apps that are enabled by default:

Here’s the list of apps that can’t be disabled:

2 Likes

Thank you for the links to github describing the different categories of apps.

I am attempting to remove all but 3 apps at docker compose up.

  1. Auditing / Logging
  2. External storage support
  3. Social Login

My NextCloud instance only needs to serve up files From AWS S3, which is built in. It needs to authenticate with Keycloak which is why the Social Login app is installed and the auditing logging app is to track all the actions in the system, though I hear some changes to config.php are required to fully enable auditing.

I’M also curious if I can import the social login settings at docker compose start once I figure them out.

Essentially, I am attempting to automate a custom NextCloud install via docker that looks the same everywhere it is deployed. Complete with Keycloak auth, S3 access, themes and removal of unwanted apps. Any help would be greatly appreciated.

Can anyone recommend a solution provider/nextcloud partner I can hire to complete these configurations. I’m not having much luck with the hooks and OCC. Thanks

from the logs you posted it looks like your scripts execute successfully and you simple need some polishing. I would recommend you split the task into simpler parts and first figure out occ command you want to run manually and put them into a hook later.

you can configure apps using OCC as well… for oidc_login you will use commands like this (might be incomplete):

docker exec --user www-data dev-nextcloud-app php occ config:list |grep oidc
docker exec --user www-data dev-nextcloud-app php occ config:system:set oidc_login_client_secret --value 'my secret'
docker exec --user www-data dev-nextcloud-app php occ config:system:set oidc_login_client_id --value 'my_client_id'
docker exec --user www-data dev-nextcloud-app php occ config:system:set oidc_login_auto_redirect --value true

# configure attributes
docker exec --user www-data dev-nextcloud-app php occ config:system:set oidc_login_attributes name --value 'name'
docker exec --user www-data dev-nextcloud-app php occ config:system:set oidc_login_attributes mail --value 'email'
docker exec --user www-data nextcloud php occ config:list | grep -i openid

This returned data for me. I am using the Social Login app for Keycloak authentication.

            "custom_providers": "{\"custom_oidc\":[{\"name\":\"keycloak\",\"title\":\"keycloak\",\"authorizeUrl\":\"https:\\\/\\\/www.example.net\\\/keycloak\\\/realms\\\/nextcloud\\\/protocol\\\/openid-connect\\\/auth\",\"tokenUrl\":\"https:\\\/\\\/www.example.net\\\/keycloak\\\/realms\\\/nextcloud\\\/protocol\\\/openid-connect\\\/token\",\"displayNameClaim\":\"\",\"userInfoUrl\":\"\",\"logoutUrl\":\"https:\\\/\\\/www.example.net\\\/keycloak\\\/realms\\\/nextcloud\\\/protocol\\\/openid-connect\\\/logout\",\"clientId\":\"nextcloud\",\"clientSecret\":\"supersecretstuff\",\"scope\":\"openid\",\"groupsClaim\":\"roles\",\"style\":\"keycloak\",\"defaultGroup\":\"\",\"groupMapping\":{\"admin\":\"admin\",\"marketing\":\"marketing\",\"roles\":\"admin\"}}]}",

How would I go about importing this at startup of nextcloud? I’m not even sure what format the output is in. Maybe JSON?

I’m still not having luck running my apps.sh file using the below line in my docker compose. Seems to skip it most times or complains it is not executable even though it is chmod +x on the host system

      - ./app-hooks/post-installation:/docker-entrypoint-hooks.d/post-installation

When attempting to disable apps in a shell script, they all fail. But when I run them one by one, they are successful.
snippet from apps.sh

docker exec --user www-data nextcloud php occ app:disable activity
docker exec --user www-data nextcloud php occ app:disable bruteforcesettings
docker exec --user www-data nextcloud php occ app:disable circles

Standard output to the terminal

No such app enabled: activity
No such app enabled: bruteforcesettings
No such app enabled: circles

Run the list

[root@nextcloud project]# docker exec --user www-data nextcloud php occ app:list
Enabled:
  - activity: 3.0.0
  - admin_audit: 1.20.0
  - bruteforcesettings: 3.0.0
  - circles: 30.0.0-dev
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contactsinteraction: 1.11.0
  - dashboard: 7.10.0
  - dav: 1.31.1
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - firstrunwizard: 3.0.0
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - nextcloud_announcements: 2.0.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - photos: 3.0.2
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - support: 2.0.0
  - survey_client: 2.0.0
  - systemtags: 1.20.0
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - updatenotification: 1.20.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - weather_status: 1.10.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - encryption: 2.18.0
  - files_external: 1.22.0
  - suspicious_login: 8.0.0
  - twofactor_nextcloud_notification: 4.0.0
  - twofactor_totp: 12.0.0-dev
  - user_ldap: 1.21.0

Running individually

[root@nextcloud project]# docker exec --user www-data nextcloud php occ app:disable activity
activity 3.0.0 disabled

And again

[root@nextcloud project]# docker exec --user www-data nextcloud php occ app:disable bruteforcesettings
bruteforcesettings 3.0.0 disabled

And just for fun, here is my entire apps.sh

docker exec --user www-data nextcloud php occ app:disable activity
docker exec --user www-data nextcloud php occ app:disable bruteforcesettings
docker exec --user www-data nextcloud php occ app:disable circles
docker exec --user www-data nextcloud php occ app:disable comments
docker exec --user www-data nextcloud php occ app:disable contactsinteraction
docker exec --user www-data nextcloud php occ app:disable dashboard
docker exec --user www-data nextcloud php occ app:disable encryption
docker exec --user www-data nextcloud php occ app:disable federation
docker exec --user www-data nextcloud php occ app:disable files_downloadlimit
docker exec --user www-data nextcloud php occ app:disable files_reminders
docker exec --user www-data nextcloud php occ app:disable files_sharing
docker exec --user www-data nextcloud php occ app:disable files_trashbin
docker exec --user www-data nextcloud php occ app:disable files_versions
docker exec --user www-data nextcloud php occ app:disable nextcloud_announcements
docker exec --user www-data nextcloud php occ app:disable notifications
docker exec --user www-data nextcloud php occ app:disable privacy
docker exec --user www-data nextcloud php occ app:disable recommendations
docker exec --user www-data nextcloud php occ app:disable related_resources
docker exec --user www-data nextcloud php occ app:disable sharebymail
docker exec --user www-data nextcloud php occ app:disable support
docker exec --user www-data nextcloud php occ app:disable survey_client
docker exec --user www-data nextcloud php occ app:disable suspicious_login
docker exec --user www-data nextcloud php occ app:disable systemtags
docker exec --user www-data nextcloud php occ app:disable twofactor_backupcodes
docker exec --user www-data nextcloud php occ app:disable twofactor_totp
docker exec --user www-data nextcloud php occ app:disable updatenotification
docker exec --user www-data nextcloud php occ app:disable user_ldap
docker exec --user www-data nextcloud php occ app:disable user_status
docker exec --user www-data nextcloud php occ app:disable weather_status
docker exec --user www-data cp -R /tmp/sociallogin /var/www/html/apps/
docker exec --user www-data nextcloud php occ app:install sociallogin
docker exec --user www-data nextcloud php occ app:remove activity
docker exec --user www-data nextcloud php occ app:remove bruteforcesettings
docker exec --user www-data nextcloud php occ app:remove circles
docker exec --user www-data nextcloud php occ app:remove comments
docker exec --user www-data nextcloud php occ app:remove contactsinteraction
docker exec --user www-data nextcloud php occ app:remove dashboard
docker exec --user www-data nextcloud php occ app:remove encryption
docker exec --user www-data nextcloud php occ app:remove federation
docker exec --user www-data nextcloud php occ app:remove files_downloadlimit
docker exec --user www-data nextcloud php occ app:remove files_reminders
docker exec --user www-data nextcloud php occ app:remove files_sharing
docker exec --user www-data nextcloud php occ app:remove files_trashbin
docker exec --user www-data nextcloud php occ app:remove files_versions
docker exec --user www-data nextcloud php occ app:remove nextcloud_announcements
docker exec --user www-data nextcloud php occ app:remove notifications
docker exec --user www-data nextcloud php occ app:remove privacy
docker exec --user www-data nextcloud php occ app:remove recommendations
docker exec --user www-data nextcloud php occ app:remove related_resources
docker exec --user www-data nextcloud php occ app:remove sharebymail
docker exec --user www-data nextcloud php occ app:remove support
docker exec --user www-data nextcloud php occ app:remove survey_client
docker exec --user www-data nextcloud php occ app:remove suspicious_login
docker exec --user www-data nextcloud php occ app:remove systemtags
docker exec --user www-data nextcloud php occ app:remove twofactor_backupcodes
docker exec --user www-data nextcloud php occ app:remove twofactor_totp
docker exec --user www-data nextcloud php occ app:remove updatenotification
docker exec --user www-data nextcloud php occ app:remove user_ldap
docker exec --user www-data nextcloud php occ app:remove user_status
docker exec --user www-data nextcloud php occ app:remove weather_status
docker exec --user www-data nextcloud php occ app:enable sociallogin
docker exec --user www-data nextcloud php occ app:enable filesexternal
docker exec --user www-data nextcloud php occ app:enable admin_audit

I have tried this in my docker -compopse.yml file all the ways and it fails each time, like above; no such app or app not installed or whatever

      - ./app-hooks/pre-installation:/docker-entrypoint-hooks.d/pre-installation

I even tried

      - ./app-hooks/before-starting:/docker-entrypoint-hooks.d/before-starting

Making sure the file is set to be executable. Nothing worked so I put it all in a bash script and it still fails. What am I doing wrong? I just want the 3 apps I posted above and that’s it.

I’m making great progress in solving my use case with some help from some exceptional programmers. Documenting it on my github for reference https://github.com/hearts1137/bigchickens

1 Like

would be great you post the results in this forum once you complete your journey!

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.