Compare commits
4 Commits
dd105ad5d9
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| b73fa92d43 | |||
| bb8cd0c2cc | |||
| 2d288c6705 | |||
| a96c92524e |
@@ -623,7 +623,7 @@ fi
|
|||||||
# - Install Postfix from debian packages system
|
# - Install Postfix from debian packages system
|
||||||
# -
|
# -
|
||||||
echononl " Install Postfix from debian packages system"
|
echononl " Install Postfix from debian packages system"
|
||||||
_needed_packages="postfix postfix-pgsql postfix-mysql postfix-pcre libsasl2-modules bsd-mailx haveged"
|
_needed_packages="postfix postfix-pgsql postfix-mysql postfix-pcre libsasl2-modules libsasl2-modules-db bsd-mailx haveged"
|
||||||
if [[ "$SASL_AUTH_ENABLED" = "yes" ]]; then
|
if [[ "$SASL_AUTH_ENABLED" = "yes" ]]; then
|
||||||
_needed_packages="$_needed_packages sasl2-bin"
|
_needed_packages="$_needed_packages sasl2-bin"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -575,7 +575,7 @@ fi
|
|||||||
# - Install Postfix from debian packages system
|
# - Install Postfix from debian packages system
|
||||||
# -
|
# -
|
||||||
echononl " Install Postfix from debian packages system"
|
echononl " Install Postfix from debian packages system"
|
||||||
_needed_packages="postfix postfix-pcre libsasl2-modules bsd-mailx haveged"
|
_needed_packages="postfix postfix-pcre libsasl2-modules libsasl2-modules-db bsd-mailx haveged"
|
||||||
for _pkg in $_needed_packages ; do
|
for _pkg in $_needed_packages ; do
|
||||||
if `dpkg -l | grep $_pkg | grep -e "^i" > /dev/null 2>&1` ; then
|
if `dpkg -l | grep $_pkg | grep -e "^i" > /dev/null 2>&1` ; then
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -1046,11 +1046,11 @@ fi
|
|||||||
# -
|
# -
|
||||||
echononl "\tInstall a cronjob for cleaning up database"
|
echononl "\tInstall a cronjob for cleaning up database"
|
||||||
crontab -l > /tmp/tmp_crontab
|
crontab -l > /tmp/tmp_crontab
|
||||||
if ! grep -q -E "${WEBSITE_BASEDIR}/htdocs/bin/cleandb.sh" /tmp/tmp_crontab 2> /dev/null ; then
|
if ! grep -q -E "/root/bin/admin-stuff/roundcube-cleandb.sh" /tmp/tmp_crontab 2> /dev/null ; then
|
||||||
echo "" >> /tmp/tmp_crontab
|
echo "" >> /tmp/tmp_crontab
|
||||||
echo "# - Keep roundcube database slick and clean" >> /tmp/tmp_crontab
|
echo "# - Keep roundcube database slick and clean" >> /tmp/tmp_crontab
|
||||||
echo "# -" >> /tmp/tmp_crontab
|
echo "# -" >> /tmp/tmp_crontab
|
||||||
echo "37 3 * * * su - www-data -c \"${WEBSITE_BASEDIR}/htdocs/bin/cleandb.sh > /dev/null\" -s /bin/bash" >> /tmp/tmp_crontab
|
echo "37 3 * * * /root/bin/admin-stuff/roundcube-cleandb.sh -w ${WEBSITE_BASEDIR}" >> /tmp/tmp_crontab
|
||||||
crontab /tmp/tmp_crontab > $log_file 2>&1
|
crontab /tmp/tmp_crontab > $log_file 2>&1
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
echo_ok
|
||||||
|
|||||||
@@ -955,20 +955,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo ""
|
|
||||||
echo "You might want to deactivate some plugins in the configuration file, e.g. the plugin 'carddav'.."
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
echononl "continue [yes/no]: "
|
|
||||||
read OK
|
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
|
||||||
read OK
|
|
||||||
done
|
|
||||||
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
|
|
||||||
|
|
||||||
# Root-Warning unterdrücken
|
# Root-Warning unterdrücken
|
||||||
export COMPOSER_ALLOW_SUPERUSER=1
|
export COMPOSER_ALLOW_SUPERUSER=1
|
||||||
export COMPOSER_ROOT_VERSION=${ROUNDCUBE_VERSION}
|
export COMPOSER_ROOT_VERSION=${ROUNDCUBE_VERSION}
|
||||||
|
|||||||
Reference in New Issue
Block a user