'overwrite.cli.url' => 'https://cloud.immae.eu',
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
- 'config_is_read_only' => true,
);
'';
config = stdenv.mkDerivation rec {
mkdir -p $out/
cp -R . $out/
rm -r $out/config
- ln -sf ${config} $out/config
+ ln -sf ../../../../../${varDir}/config $out/config
${builtins.concatStringsSep "\n" (
lib.attrsets.mapAttrsToList (name: value: "ln -sf ${value} $out/apps/${name}") apps
)}
text = ''
install -m 0755 -o ${apache.user} -g ${apache.group} -d ${varDir}
install -m 0750 -o ${apache.user} -g ${apache.group} -d ${varDir}/phpSessions
+ if [ ! -e ${varDir}/config ]; then
+ cp -a ${config} ${varDir}/config
+ chown -R ${apache.user}:${apache.group} ${varDir}/config
+ chmod -R u+w ${varDir}/config
+ fi
'';
};
apache = {