fix nextcloud ldap test

This commit is contained in:
ibizaman 2024-12-17 08:15:21 +01:00 committed by Pierre Penninckx
parent ae50afbff8
commit ab6de8de90
2 changed files with 10 additions and 1 deletions

View file

@ -739,6 +739,11 @@ in
];
systemd.timers.nextcloud-cron.requires = cfg.mountPointServices;
systemd.timers.nextcloud-cron.after = cfg.mountPointServices;
# This is needed to be able to run the cron job before opening the app for the first time.
# Otherwise the cron job fails while searching for this directory.
systemd.services.nextcloud-setup.script = ''
mkdir -p ${cfg.dataDir}/data/appdata_$(${occ} config:system:get instanceid)/theming/global
'';
systemd.services.nextcloud-setup.requires = cfg.mountPointServices;
systemd.services.nextcloud-setup.after = cfg.mountPointServices;

View file

@ -158,10 +158,14 @@ let
port = config.shb.ldap.ldapPort;
dcdomain = config.shb.ldap.dcdomain;
adminName = "admin";
adminPassword.result = config.shb.ldap.ldapUserPassword.result;
adminPassword.result = config.shb.hardcodedsecret.nextcloudLdapUserPassword.result;
userGroup = "nextcloud_user";
};
};
shb.hardcodedsecret.nextcloudLdapUserPassword = {
request = config.shb.nextcloud.apps.ldap.adminPassword.request;
settings = config.shb.hardcodedsecret.ldapUserPassword.settings;
};
};
sso = { config, ... }: