2015-04-14 15:45:16 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-04-14 16:04:33 +02:00
|
|
|
rsync -a `dirname $0`/ /
|
2015-04-14 15:45:16 +02:00
|
|
|
cd `dirname $0`/../../
|
|
|
|
sudo sed -i "s%template_dir.*%template_dir = '`pwd`/resources/templates/'%" /etc/ldapcherry/ldapcherry.ini
|
|
|
|
sudo sed -i "s%tools.staticdir.dir.*%tools.staticdir.dir = '`pwd`/resources/static/'%" /etc/ldapcherry/ldapcherry.ini
|
|
|
|
|
2015-04-14 16:04:33 +02:00
|
|
|
chown -R openldap:openldap /etc/ldap/
|
|
|
|
/etc/init.d/slapd restart
|
2015-04-14 15:45:16 +02:00
|
|
|
ldapadd -H ldap://localhost -x -D "cn=admin,dc=example,dc=org" -f /etc/ldap/content.ldif -w password
|
|
|
|
sed -i "s/\(127.0.0.1.*\)/\1 ldap.ldapcherry.org/" /etc/hosts
|