Skip to content

Commit acda967

Browse files
author
Kristan Kenney
committed
Add exim4 configuration fix to upgrade script
hestiacp#572
1 parent a1cda47 commit acda967

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

install/upgrade/versions/latest.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ if [ -e $HESTIA/data/users/history.log ]; then
5656
rm -f $HESTIA/data/users/history.log
5757
fi
5858

59-
# Use exim4 hostname without hardcoded mailprefix
59+
# Use exim4 server hostname instead of mail domain and remove hardcoded mail prefix
6060
if [ ! -z "$MAIL_SYSTEM" ]; then
6161
if cat /etc/exim4/exim4.conf.template | grep -q 'helo_data = mail.${sender_address_domain}'; then
62-
sed -i 's/helo_data = mail.${sender_address_domain}/helo_data = ${sender_address_domain}/g' /etc/exim4/exim4.conf.template
62+
echo "(*) Updating exim configuration..."
63+
sed -i 's/helo_data = mail.${sender_address_domain}/helo_data = ${primary_hostname}/g' /etc/exim4/exim4.conf.template
6364
fi
6465
fi
6566

@@ -76,8 +77,9 @@ if [ -e "/etc/cron.d/hestia-sftp" ]; then
7677
fi
7778

7879
# Create default writeable folders for all users
80+
echo "(*) Updating default writable folders for all users..."
7981
for user in $($HESTIA/bin/v-list-sys-users plain); do
8082
mkdir -p $HOMEDIR/$user/.config $HOMEDIR/$user/.local $HOMEDIR/$user/.composer
8183
chown $user:$user $HOMEDIR/$user/.config $HOMEDIR/$user/.local \
8284
$HOMEDIR/$user/.composer
83-
done
85+
done

0 commit comments

Comments
 (0)