Remove default postfix plugin from docker image

This commit is contained in:
Floris Westerman 2020-11-26 15:18:48 +01:00
parent b301feee2f
commit 71f4cc631e
No known key found for this signature in database
GPG key ID: E2AED138B92702B0
7 changed files with 0 additions and 612 deletions

View file

@ -9,11 +9,6 @@ adduser --uid "$UID" --disabled-password --gid "$GID" --shell /bin/bash --home /
sed -i "s/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE/g" /usr/local/etc/php-fpm.d/php-fpm.conf /etc/nginx/nginx.conf
sed -i "s/<MEMORY_LIMIT>/$MEMORY_LIMIT/g" /usr/local/etc/php-fpm.d/php-fpm.conf
# Remove postfixadmin-change-password plugin if exist
if [ -d "/snappymail/data/_data_/_default_/plugins/postfixadmin-change-password" ]; then
rm -rf /snappymail/data/_data_/_default_/plugins/postfixadmin-change-password
fi
# Set log output to STDERR if wanted (LOG_TO_STDERR=true)
if [ "$LOG_TO_STDERR" = true ]; then
echo "[INFO] Logging to stderr activated"
@ -31,10 +26,6 @@ if [ "${SECURE_COOKIES}" = true ]; then
} > /usr/local/etc/php/conf.d/cookies.ini;
fi
# Add postfixadmin-change-password plugin
mkdir -p /snappymail/data/_data_/_default_/plugins/
cp -r /usr/local/include/postfixadmin-change-password /snappymail/data/_data_/_default_/plugins/
# Copy snappymail default config if absent
SNAPPYMAIL_CONFIG_FILE=/snappymail/data/_data_/_default_/configs/application.ini
if [ ! -f "$SNAPPYMAIL_CONFIG_FILE" ]; then