Changeset View
Changeset View
Standalone View
Standalone View
docker/kolab/utils/07-adjust-base-dns.sh
Show All 15 Lines | \$myhostname = '${HOSTNAME:-kolab}.${DOMAIN:-mgmt.com}';" \ | ||||
-e "s/^search_base = .*$/search_base = ${hosted_domain_rootdn}/g" \ | -e "s/^search_base = .*$/search_base = ${hosted_domain_rootdn}/g" \ | ||||
-e "s/(\s+)'base_dn'(\s+)=> '.*',/\1'base_dn'\2=> '${hosted_domain_rootdn}',/g" \ | -e "s/(\s+)'base_dn'(\s+)=> '.*',/\1'base_dn'\2=> '${hosted_domain_rootdn}',/g" \ | ||||
-e "s/(\s+)'search_base_dn'(\s+)=> '.*',/\1'search_base_dn'\2=> '${hosted_domain_rootdn}',/g" \ | -e "s/(\s+)'search_base_dn'(\s+)=> '.*',/\1'search_base_dn'\2=> '${hosted_domain_rootdn}',/g" \ | ||||
-e "s/(\s+)'user_specific'(\s+)=> false,/\1'user_specific'\2=> true,/g" \ | -e "s/(\s+)'user_specific'(\s+)=> false,/\1'user_specific'\2=> true,/g" \ | ||||
/etc/amavisd/amavisd.conf \ | /etc/amavisd/amavisd.conf \ | ||||
/etc/kolab-freebusy/config.ini \ | /etc/kolab-freebusy/config.ini \ | ||||
/etc/postfix/ldap/*.cf \ | /etc/postfix/ldap/*.cf \ | ||||
/etc/roundcubemail/config.inc.php \ | /etc/roundcubemail/config.inc.php \ | ||||
/etc/roundcubemail/calendar.inc.php \ | |||||
/etc/roundcubemail/kolab_auth.inc.php | /etc/roundcubemail/kolab_auth.inc.php | ||||
sed -i -r \ | sed -i -r \ | ||||
-e "s/^search_base = .*$/search_base = ${domain_base_dn}/g" \ | -e "s/^search_base = .*$/search_base = ${domain_base_dn}/g" \ | ||||
/etc/postfix/ldap/mydestination.cf | /etc/postfix/ldap/mydestination.cf | ||||
systemctl restart cyrus-imapd postfix | systemctl restart cyrus-imapd postfix |