add extraOCCCommands option
This commit is contained in:
parent
41f6fcc324
commit
f97c7e1cd7
4 changed files with 25 additions and 1268 deletions
|
|
@ -73,6 +73,14 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
extraOCCCommands = mkOption {
|
||||
default = "";
|
||||
type = types.lines;
|
||||
example = "nextcloud-occ app:enable cleanup";
|
||||
description = lib.mdDoc ''
|
||||
Extra OCC commands which get executed after setup.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -97,6 +105,15 @@ in {
|
|||
after = ["nextcloud-setup.service"];
|
||||
};
|
||||
|
||||
systemd.services.nextcloud-extra-occ-commands = {
|
||||
enable = true;
|
||||
script = ''
|
||||
${cfg.extraOCCCommands}
|
||||
'';
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = ["nextcloud-setup.service"];
|
||||
};
|
||||
|
||||
services.phpfpm.pools.nextcloud.settings = {
|
||||
"listen.owner" = webserver.user;
|
||||
"listen.group" = webserver.group;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue