You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: install/upgrade/versions/1.8.0.sh
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -263,7 +263,11 @@ if [ "$MAIL_SYSTEM" = "exim4" ]; then
263
263
if [ "$?"-ne 0 ];then
264
264
add_upgrade_message "Unable to successfully aply the SRS update patch for Exim.\n If you use SMTP relay with the SRS feature use the exim config found in /usr/local/hestia/install/deb/exim/exim4.conf.4.95.template"
265
265
"$BIN"/v-add-user-notification admin "Unable to apply patch to Exim config"'Unable to successfully apply the SRS update patch for Exim.<br /> If you use SMTP relay with the SRS feature use the exim config found in /usr/local/hestia/install/deb/exim/exim4.conf.4.95.template'
266
-
sed -i "s/""$(grep -m 1 "Unable to apply patch to Exim config""$HESTIA"/data/users/admin/notifications.conf | awk '{print $1}')""/NID='1'/""$HESTIA"/data/users/admin/notifications.conf
266
+
if grep -qw "IMPORTANT: Manual Action Required""$HESTIA"/data/users/admin/notifications.conf 2> /dev/null;then
267
+
sed -i "s/""$(grep -m 1 "Unable to apply patch to Exim config""$HESTIA"/data/users/admin/notifications.conf | awk '{print $1}')""/NID='3'/""$HESTIA"/data/users/admin/notifications.conf
268
+
else
269
+
sed -i "s/""$(grep -m 1 "Unable to apply patch to Exim config""$HESTIA"/data/users/admin/notifications.conf | awk '{print $1}')""/NID='2'/""$HESTIA"/data/users/admin/notifications.conf
270
+
fi
267
271
echo"[ ! ] Unable to apply SRS update patch for SMTP relay"
0 commit comments