pmcf 6.6.0 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/base.mjs +12 -2
- package/src/services/openldap.mjs +8 -0
package/package.json
CHANGED
package/src/base.mjs
CHANGED
|
@@ -441,9 +441,19 @@ export class Base {
|
|
|
441
441
|
return new Set(allOutputs.filter(o => this.packaging.has(o.name)));
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
+
get systemUserName()
|
|
445
|
+
{
|
|
446
|
+
return this.constructor.name;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
get systemGroupName()
|
|
450
|
+
{
|
|
451
|
+
return this.constructor.name;
|
|
452
|
+
}
|
|
453
|
+
|
|
444
454
|
get packageContentPermissions() {
|
|
445
|
-
const owner = this.
|
|
446
|
-
const group =
|
|
455
|
+
const owner = this.systemUserName;
|
|
456
|
+
const group = this.systemGroupName;
|
|
447
457
|
return [
|
|
448
458
|
{
|
|
449
459
|
mode: 0o644,
|
|
@@ -33,6 +33,14 @@ export class openldap extends CoreService {
|
|
|
33
33
|
this._uri = value;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
get systemUserName() {
|
|
37
|
+
return "ldap";
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
get systemGroupName() {
|
|
41
|
+
return "ldap";
|
|
42
|
+
}
|
|
43
|
+
|
|
36
44
|
async *preparePackages(dir) {
|
|
37
45
|
const permissions = this.packageContentPermissions;
|
|
38
46
|
const packageData = this.packageData;
|