mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Recreate the admins group which for some reason didnt exist on old setups ..
This commit is contained in:
parent
d740046a2d
commit
ee83c3f9ba
1 changed files with 14 additions and 0 deletions
|
@ -126,6 +126,20 @@ do_post_regen() {
|
||||||
then
|
then
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl restart slapd
|
systemctl restart slapd
|
||||||
|
sleep 3
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For some reason, old setups don't have the admins group defined...
|
||||||
|
if ! slapcat | grep -q 'cn=admins,ou=groups,dc=yunohost,dc=org'
|
||||||
|
then
|
||||||
|
slapadd -F /etc/ldap/slapd.d -b dc=yunohost,dc=org <<< \
|
||||||
|
"dn: cn=admins,ou=groups,dc=yunohost,dc=org
|
||||||
|
cn: admins
|
||||||
|
gidNumber: 4001
|
||||||
|
memberUid: admin
|
||||||
|
objectClass: posixGroup
|
||||||
|
objectClass: top"
|
||||||
|
nscd -i groups
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -z "$regen_conf_files" ] && exit 0
|
[ -z "$regen_conf_files" ] && exit 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue