occ commands not run on deploy #54

Open
opened 2025-10-17 08:09:06 +00:00 by ammaratef45 · 5 comments
Owner

I created a new instance and uncommented configs like:

APPS="calendar"
....
APPS="$APPS whiteboard"
....
OCC_CMDS="app:disable dashboard"

The apps calendar and and whiteboard weren't installed and the dashboard was not disabled

I created a new instance and uncommented configs like: ``` APPS="calendar" .... APPS="$APPS whiteboard" .... OCC_CMDS="app:disable dashboard" ``` The apps calendar and and whiteboard weren't installed and the dashboard was not disabled
Owner

I think the pre/post hooks were removed from the config? I'm not sure.

I think you have to manually trigger it now.

I think the pre/post hooks were removed from the config? I'm not sure. I think you have to manually trigger it now.
ammaratef45 added the
documentation
label 2025-10-17 21:58:52 +00:00
Author
Owner

Labeled it as a documentation gap, will post on matrix and see what the community does so the recipe can be updated to reflect that

Labeled it as a documentation gap, will post on matrix and see what the community does so the recipe can be updated to reflect that
Owner

@ammaratef45 it looks like these variables are only used by the corresponding abra.sh commands:

  • for OCC_CMDS you need to run abra app cmd <domain> app post_install_occ
  • for APPS you need to run abra app cmd <domain> app install_apps

post_install_occ is in README, install_apps isn't, maybe we can add it? And maybe a note in .env.sample next to those options?

@ammaratef45 it looks like these variables are only used by the corresponding `abra.sh` commands: * for `OCC_CMDS` you need to run `abra app cmd <domain> app post_install_occ` * for `APPS` you need to run `abra app cmd <domain> app install_apps` `post_install_occ` is in README, `install_apps` isn't, maybe we can add it? And maybe a note in `.env.sample` next to those options?
Author
Owner

Okay instead of explaining I put what I'm thinking in the form of PR #55 so we can chat over lines of code lol, basically some of the confusion can be reduced by reducing how many ways we can do one thing (running a simple occ command; also notice I removed the other two occ commands from env variable because they function is also covered already by the set_authentik command)

Okay instead of explaining I put what I'm thinking in the form of PR #55 so we can chat over lines of code lol, basically some of the confusion can be reduced by reducing how many ways we can do one thing (running a simple occ command; also notice I removed the other two occ commands from env variable because they function is also covered already by the `set_authentik` command)
Author
Owner

Wondering if install_apps has more usage or should be sacrificed as well

Wish there was a way of including more env files for apps the same way we include different compose files for different features (maybe there is and I just need to read a bit)

Wondering if install_apps has more usage or should be sacrificed as well Wish there was a way of including more env files for apps the same way we include different compose files for different features (maybe there is and I just need to read a bit)
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coop-cloud/nextcloud#54
No description provided.