mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] regenconf: fix a stupid issue with slapcat displaying an error message because grep -q breaks the pipe
This commit is contained in:
parent
c0ceb66ad4
commit
503b90316f
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ do_post_regen() {
|
|||
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
|
||||
if ! slapcat -H "ldap:///cn=admins,ou=groups,dc=yunohost,dc=org" | 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
|
||||
|
|
Loading…
Add table
Reference in a new issue