Skip to content

Commit 1567eab

Browse files
committed
Merge branch 'main' into release
2 parents d2d5153 + 0c07399 commit 1567eab

File tree

39 files changed

+354
-91
lines changed

39 files changed

+354
-91
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [DEVELOPMENT] - Service release
5+
6+
## Features
7+
8+
- Add templates Chevereto #2153 @ManualRechkle
9+
10+
### Bugfixes
11+
12+
- Fix bug in v-add-sys-ip with netplan active
13+
- Limit access to files/folders that are not required on default /phpmyadmin (*.json, templates, locale, vendor) #2143
14+
- Update translations
15+
- Fix issue with Exim 4.94 and Autoreply #2151
16+
- Fix multiple UI bugs #2415
17+
- Fix link broken link to Documentation #2142
18+
- Improve detection for MariaDB #2141 thanks @gejobj
19+
420
## [1.4.14] - Service release
521

622
### Bugfixes

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[Hestia Control Panel](https://www.hestiacp.com/)
44
==================================================
5-
**Latest stable release:** Version 1.4.13 | [View Changelog](https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md) | [![Build Status](https://drone.hestiacp.com/api/badges/hestiacp/hestiacp/status.svg?ref=refs/heads/main)](https://drone.hestiacp.com/hestiacp/hestiacp) <br>
5+
**Latest stable release:** Version 1.4.15 | [View Changelog](https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md) | [![Build Status](https://drone.hestiacp.com/api/badges/hestiacp/hestiacp/status.svg?ref=refs/heads/main)](https://drone.hestiacp.com/hestiacp/hestiacp) <br>
66

77
**Web:** [www.hestiacp.com](https://www.hestiacp.com/)<br>
88
**Documentation:** [docs.hestiacp.com](https://docs.hestiacp.com/)<br>

bin/v-add-mail-account

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
7070
fi
7171
str="$account:$md5:$user:mail::$HOMEDIR/$user:${quota}:userdb_quota_rule=*:storage=${quota}M"
7272
echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd
73+
userstr="$account:$account:$user:mail:$HOMEDIR/$user"
74+
echo $str >> $HOMEDIR/$user/conf/mail/$domain/accounts
7375
fi
7476

7577
# Create mail account folder (mailbox)

bin/v-add-mail-domain

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
115115
touch $HOMEDIR/$user/conf/mail/$domain/aliases
116116
touch $HOMEDIR/$user/conf/mail/$domain/passwd
117117
touch $HOMEDIR/$user/conf/mail/$domain/fwd_only
118+
touch $HOMEDIR/$user/conf/mail/$domain/accounts
118119
ln -s $HOMEDIR/$user/conf/mail/$domain \
119120
/etc/$MAIL_SYSTEM/domains/$domain_idn
120121

@@ -154,6 +155,7 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
154155
if [ "$IMAP_SYSTEM" = 'dovecot' ]; then
155156
chown -R dovecot:mail $HOMEDIR/$user/conf/mail/$domain/passwd
156157
fi
158+
chown $MAIL_USER:mail $HOMEDIR/$user/conf/mail/$domain/accounts
157159
chown $user:mail $HOMEDIR/$user/mail/$domain_idn
158160
fi
159161

bin/v-add-sys-ip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ if [ -z "$sys_ip_check" ]; then
8080
# Improve check netplan
8181
if dpkg-query -W -f'${Status}' "netplan*" 2>/dev/null | grep -q "ok installed"; then
8282
result=$(cat /etc/netplan/*.yaml 2>/dev/null | grep $(hostname -I | cut -d' ' -f1));
83-
if [ ! -z $result ]; then
83+
if [ ! -z "$result" ]; then
8484
netplan=1
8585
else
8686
netplan=0

bin/v-delete-mail-account

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
5959

6060
sed -i "/^$account@$domain_idn:/d" $HOMEDIR/$user/conf/mail/$domain/aliases
6161
sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/passwd
62+
sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/accounts
6263
sed -i "/^$account$/d" $HOMEDIR/$user/conf/mail/$domain/fwd_only
6364
rm -rf $HOMEDIR/$user/mail/$domain/$account
6465
fi

bin/v-list-sys-services

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ if [ ! -z "$DB_SYSTEM" ] && [ "$DB_SYSTEM" != 'remote' ]; then
233233
service="$db"
234234
proc_name=''
235235
if [ "$service" = 'mysql' ]; then
236+
if [ -d "/etc/sysconfig" ]; then
237+
service='mysqld'
238+
proc_name='mysqld'
239+
fi
236240
if [ -e "/lib/systemd/system/mariadb.service" ]; then
237241
service='mariadb'
238242
proc_name='mysqld'
@@ -244,10 +248,6 @@ if [ ! -z "$DB_SYSTEM" ] && [ "$DB_SYSTEM" != 'remote' ]; then
244248
proc_name='mariadbd'
245249
fi
246250
fi
247-
if [ -d "/etc/sysconfig" ]; then
248-
service='mysqld'
249-
proc_name='mysqld'
250-
fi
251251
fi
252252
if [ "$service" == 'pgsql' ]; then
253253
service='postgresql'

func/rebuild.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,13 +541,15 @@ rebuild_mail_domain_conf() {
541541
mkdir -p $HOMEDIR/$user/conf/mail/$domain
542542
ln -s $HOMEDIR/$user/conf/mail/$domain \
543543
/etc/$MAIL_SYSTEM/domains/$domain_idn
544+
rm -f $HOMEDIR/$user/conf/mail/$domain/accounts
544545
rm -f $HOMEDIR/$user/conf/mail/$domain/aliases
545546
rm -f $HOMEDIR/$user/conf/mail/$domain/antispam
546547
rm -f $HOMEDIR/$user/conf/mail/$domain/antivirus
547548
rm -f $HOMEDIR/$user/conf/mail/$domain/protection
548549
rm -f $HOMEDIR/$user/conf/mail/$domain/passwd
549550
rm -f $HOMEDIR/$user/conf/mail/$domain/fwd_only
550551
rm -f $HOMEDIR/$user/conf/mail/$domain/ip
552+
touch $HOMEDIR/$user/conf/mail/$domain/accounts
551553
touch $HOMEDIR/$user/conf/mail/$domain/aliases
552554
touch $HOMEDIR/$user/conf/mail/$domain/passwd
553555
touch $HOMEDIR/$user/conf/mail/$domain/fwd_only
@@ -624,6 +626,8 @@ rebuild_mail_domain_conf() {
624626
fi
625627
str="$account:$MD5:$user:mail::$HOMEDIR/$user:${QUOTA}:userdb_quota_rule=*:storage=${QUOTA}M"
626628
echo $str >> $HOMEDIR/$user/conf/mail/$domain/passwd
629+
userstr="$account:$account:$user:mail:$HOMEDIR/$user"
630+
echo $userstr >> $HOMEDIR/$user/conf/mail/$domain/accounts
627631
for malias in ${ALIAS//,/ }; do
628632
echo "$malias@$domain_idn:$account@$domain_idn" >> $dom_aliases
629633
done
@@ -647,6 +651,7 @@ rebuild_mail_domain_conf() {
647651
if [ "$IMAP_SYSTEM" = "dovecot" ]; then
648652
chown -R dovecot:mail $HOMEDIR/$user/conf/mail/$domain/passwd
649653
fi
654+
chown $MAIL_USER:mail $HOMEDIR/$user/conf/mail/$domain/accounts
650655
chown $user:mail $HOMEDIR/$user/mail/$domain_idn
651656
fi
652657

func/upgrade.sh

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ upgrade_start_backup() {
439439
if [ "$DEBUG_MODE" = "true" ]; then
440440
echo " ---- sshd"
441441
fi
442-
cp -f /etc/ssh/* $HESTIA_BACKUP/conf/ssh/
442+
cp -fr /etc/ssh/* $HESTIA_BACKUP/conf/ssh/
443443
fi
444444
if [ -d "/etc/roundcube" ]; then
445445
if [ "$DEBUG_MODE" = "true" ]; then
@@ -604,7 +604,7 @@ upgrade_roundcube(){
604604
if [ "UPGRADE_UPDATE_ROUNDCUBE" = "true" ]; then
605605
if [ ! -z "$(echo "$WEBMAIL_SYSTEM" | grep -w 'roundcube')" ]; then
606606
rc_version=$(cat /var/lib/roundcube/index.php | grep -o -E '[0-9].[0-9].[0-9]+' | head -1);
607-
if [ "$rc_version" == "$rc_v" ]; then
607+
if [ "$rc_version" != "$rc_v" ]; then
608608
echo "[ * ] Upgrading Roundcube to version v$rc_v..."
609609
$HESTIA/bin/v-add-sys-roundcube
610610
fi
@@ -616,14 +616,26 @@ upgrade_rainloop(){
616616
if [ "UPGRADE_UPDATE_RAINLOOP" = "true" ]; then
617617
if [ ! -z "$(echo "$WEBMAIL_SYSTEM" | grep -w 'rainloop')" ]; then
618618
rc_version=$(cat /var/lib/rainloop/data/VERSION);
619-
if [ "$rc_version" == "$rc_v" ]; then
619+
if [ "$rc_version" != "$rl_v" ]; then
620620
echo "[ * ] Upgrading Rainloop to version v$rl_v..."
621621
$HESTIA/bin/v-add-sys-rainloop
622622
fi
623623
fi
624624
fi
625625
}
626626

627+
upgrade_phpmailer(){
628+
if [ ! -d "$HESTIA/web/inc/vendor/" ]; then
629+
echo "[ ! ] Install PHPmailer";
630+
$HESTIA/bin/v-add-sys-phpmailer
631+
fi
632+
phpm_version=$(cat $HESTIA/web/inc/vendor/phpmailer/phpmailer/VERSION);
633+
if [ "$phpm_version" != "$pm_v" ]; then
634+
echo "[ * ] Upgrading Rainloop to version v$pm_v..."
635+
$HESTIA/bin/v-add-sys-phpmailer
636+
fi
637+
}
638+
627639
upgrade_rebuild_web_templates() {
628640
if [ "$UPGRADE_UPDATE_WEB_TEMPLATES" = "true" ]; then
629641
echo "[ ! ] Updating default web domain templates..."

install/deb/exim/exim4.conf.4.94.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ address_reply:
413413

414414
userautoreply:
415415
driver = autoreply
416-
file = /etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/autoreply.${lookup{$local_part}dsearch{${extract{5}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/passwd}}}}/mail/${lookup{$domain}dsearch{/etc/exim4/domains/}}}}.msg
417-
from = "${lookup{$local_part}dsearch{${extract{5}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/passwd}}}}/mail/${lookup{$domain}dsearch{/etc/exim4/domains/}}}}@${lookup{$domain}dsearch{/etc/exim4/domains/}}"
416+
file = /etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/autoreply.${extract{1}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/accounts}}}}.msg
417+
from = "${extract{1}{:}{${lookup{$local_part}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/accounts}}}}@${lookup{$domain}dsearch{/etc/exim4/domains/}}"
418418
headers = Content-Type: text/plain; charset=utf-8;\nContent-Transfer-Encoding: 8bit
419419
subject = "${if def:h_Subject: {Autoreply: \"${rfc2047:$h_Subject:}\"} {Autoreply Message}}"
420420
to = "${sender_address}"

0 commit comments

Comments
 (0)