updates to core
This commit is contained in:
@@ -196,9 +196,9 @@ if [ ! -f $installPth/.configDone ]; then
|
||||
sed -i 's/LETSENCRYPT_EMAIL=.*/LETSENCRYPT_EMAIL="'$acmeContact'"/g' ./piler.conf
|
||||
fi
|
||||
|
||||
# use Mailcow
|
||||
# use mailcow
|
||||
while true; do
|
||||
read -ep "If Use Mailcow API Options (yes/no)? / Y|N: " jn
|
||||
read -ep "If Use mailcow API Options (yes/no)? / Y|N: " jn
|
||||
case $jn in
|
||||
[Yy]* ) sed -i 's/USE_MAILCOW=.*/USE_MAILCOW=true/g' ./piler.conf; break;;
|
||||
[Nn]* ) sed -i 's/USE_MAILCOW=.*/USE_MAILCOW=false/g' ./piler.conf; break;;
|
||||
@@ -210,13 +210,13 @@ if [ ! -f $installPth/.configDone ]; then
|
||||
. ./piler.conf
|
||||
|
||||
if [ "$USE_MAILCOW" = true ]; then
|
||||
# Mailcow API-Key
|
||||
read -ep "Please set your Mailcow API-Key (current: $MAILCOW_APIKEY): " apiKey
|
||||
# mailcow API-Key
|
||||
read -ep "Please set your mailcow API-Key (current: $MAILCOW_APIKEY): " apiKey
|
||||
apiKey=${apiKey:=$MAILCOW_APIKEY}
|
||||
sed -i 's/MAILCOW_APIKEY=.*/MAILCOW_APIKEY="'$apiKey'"/g' ./piler.conf
|
||||
|
||||
# Mailcow Host Domain
|
||||
read -ep "Please set your Mailcow Host Domain (Enter for default: $imapServer): " mailcowHost
|
||||
# mailcow Host Domain
|
||||
read -ep "Please set your mailcow Host Domain (Enter for default: $imapServer): " mailcowHost
|
||||
mailcowHost=${mailcowHost:=$imapServer}
|
||||
sed -i 's/MAILCOW_HOST=.*/MAILCOW_HOST="'$mailcowHost'"/g' ./piler.conf
|
||||
fi
|
||||
@@ -418,31 +418,6 @@ cat >> $etcPth/config-site.php <<EOF
|
||||
\$config['IMAP_PORT'] = 993;
|
||||
\$config['IMAP_SSL'] = true;
|
||||
|
||||
// authentication against an ldap directory (disabled by default)
|
||||
//\$config['ENABLE_LDAP_AUTH'] = 1;
|
||||
//\$config['LDAP_HOST'] = '$SMARTHOST';
|
||||
//\$config['LDAP_PORT'] = 389;
|
||||
//\$config['LDAP_HELPER_DN'] = 'cn=administrator,cn=users,dc=mydomain,dc=local';
|
||||
//\$config['LDAP_HELPER_PASSWORD'] = 'myxxxxpasswd';
|
||||
//\$config['LDAP_MAIL_ATTR'] = 'mail';
|
||||
//\$config['LDAP_AUDITOR_MEMBER_DN'] = '';
|
||||
//\$config['LDAP_ADMIN_MEMBER_DN'] = '';
|
||||
//\$config['LDAP_BASE_DN'] = 'ou=Benutzer,dc=krs,dc=local';
|
||||
|
||||
// authentication against an Uninvention based ldap directory
|
||||
//\$config['ENABLE_LDAP_AUTH'] = 1;
|
||||
//\$config['LDAP_HOST'] = '$SMARTHOST';
|
||||
//\$config['LDAP_PORT'] = 7389;
|
||||
//\$config['LDAP_HELPER_DN'] = 'uid=ldap-search-user,cn=users,dc=mydomain,dc=local';
|
||||
//\$config['LDAP_HELPER_PASSWORD'] = 'myxxxxpasswd';
|
||||
//\$config['LDAP_AUDITOR_MEMBER_DN'] = '';
|
||||
//\$config['LDAP_ADMIN_MEMBER_DN'] = '';
|
||||
//\$config['LDAP_BASE_DN'] = 'cn=users,dc=mydomain,dc=local';
|
||||
//\$config['LDAP_MAIL_ATTR'] = 'mailPrimaryAddress';
|
||||
//\$config['LDAP_ACCOUNT_OBJECTCLASS'] = 'person';
|
||||
//\$config['LDAP_DISTRIBUTIONLIST_OBJECTCLASS'] = 'person';
|
||||
//\$config['LDAP_DISTRIBUTIONLIST_ATTR'] = 'mailAlternativeAddress';
|
||||
|
||||
// special settings.
|
||||
//\$config['MEMCACHED_ENABLED'] = 1;
|
||||
\$config['SPHINX_STRICT_SCHEMA'] = 1; // required for Sphinx see https://bitbucket.org/jsuto/piler/issues/1085/sphinx-331.
|
||||
@@ -464,14 +439,14 @@ if [ "$USE_MAILCOW" = true ]; then
|
||||
|
||||
echo
|
||||
echo "${blue}${HLINE}"
|
||||
echo "set Mailcow Api-Key config"
|
||||
echo "set mailcow Api-Key config"
|
||||
echo "${blue}${HLINE}${normal}"
|
||||
echo
|
||||
|
||||
cat >> $etcPth/config-site.php <<EOF
|
||||
|
||||
// ### Begin added by Piler-Installer ###
|
||||
// Mailcow API
|
||||
// mailcow API
|
||||
\$config['MAILCOW_API_KEY'] = '$MAILCOW_APIKEY';
|
||||
\$config['MAILCOW_SET_REALNAME'] = true;
|
||||
\$config['CUSTOM_EMAIL_QUERY_FUNCTION'] = 'query_mailcow_for_email_access';
|
||||
|
||||
Reference in New Issue
Block a user