Skip to content

Commit 0ac4911

Browse files
author
Kristan Kenney
committed
Merge branch 'staging/fixes' into main
2 parents b27cc66 + 2e2dc53 commit 0ac4911

26 files changed

+125
-59
lines changed

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@ All notable changes to this project will be documented in this file.
66

77
### Bugfixes
88
- Create mailhelo.conf if it doesnt exist to prevent a error message during grep.
9-
10-
## [1.2.1] - Service Release 1 (beta)
9+
- Corrected the display of DNS record types to appear in alphabetical order.
10+
- Fixed an issue where the DNS record type field would reset if an error occurred while adding a new DNS record. (#992)
11+
- Fixed an issue where the DNS domain hint would not appear correctly when editing a DNS record. (#993)
12+
- Fixed an issue where a DNS record would become malformed if changed from A to CNAME. (#988)
13+
- Fixed an issue with the back button on the DNS records page. (#989)
14+
- Fixed an issue where phpMyAdmin/phpPgAdmin would not load correctly due to an incorrect vhost configuration. (#970)
15+
- Fixed an issue where malformed JSON output was returned when custom theme files are present. (#967)
16+
- Fixed an error that would occur when running `v-change-user-php-cli` for the first time if .bash_aliases did not exist. (#960)
17+
18+
## [1.2.1] - Service Release 1
1119
### Features
1220
- Consolidated First and Last Name fields to a singular name field to simply input.
1321
- v-change-user-name will now accept both "First Last" (single argument) and First Last (two arguments) for backward compatibility.

bin/v-add-sys-filemanager

100644100755
File mode changed.

bin/v-change-dns-record

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,17 @@ check_hestia_demo_mode
5858
line=$(grep "ID='$id'" $USER_DATA/dns/$domain.conf)
5959
parse_object_kv_list "$line"
6060

61+
if [ -z $type ]; then
62+
type=$TYPE
63+
fi
64+
6165
# Null priority for none MX/SRV records
62-
if [ "$TYPE" != 'MX' ] && [ "$TYPE" != 'SRV' ]; then
66+
if [ "$type" != 'MX' ] && [ "$TYPE" != 'SRV' ]; then
6367
priority=''
6468
fi
6569

6670
# Add trailing dot at the end of NS/CNAME/MX/PTR/SRV record
67-
if [[ $TYPE =~ NS|CNAME|MX|PTR|SRV ]]; then
71+
if [[ $type =~ NS|CNAME|MX|PTR|SRV ]]; then
6872
trailing_dot=$(echo $dvalue | grep "\.$")
6973
if [ -z $trailing_dot ]; then
7074
dvalue="$dvalue."

bin/v-change-sys-db-alias

100644100755
File mode changed.

bin/v-delete-letsencrypt-domain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ else
6868
$BIN/v-delete-mail-domain-ssl $user $domain $restart >/dev/null 2>&1
6969
fi
7070
cmdstatus="$?"
71-
if [ "$cmdstatus" -ne E_NOTEXIST ]; then
71+
if [ "$cmdstatus" -ne "$E_NOTEXIST" ]; then
7272
check_result "$cmdstatus" "SSL delete" >/dev/null
7373
fi
7474

bin/v-delete-sys-filemanager

100644100755
File mode changed.

bin/v-rebuild-all

100644100755
File mode changed.

bin/v-update-sys-hestia-git

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ else
109109
fi
110110

111111
if [ ! -z "$2" ]; then
112-
branch_check=$(curl -s --head -w %{http_code} https://raw.githubusercontent.com/hestiacp/hestiacp/$branch/src/deb/hestia/control -o /dev/null)
112+
branch_check=$(curl -s --head -w %{http_code} https://raw.githubusercontent.com/$fork/hestiacp/$branch/src/deb/hestia/control -o /dev/null)
113113
if [ $branch_check -ne "200" ]; then
114114
echo "ERROR: invalid branch name specified."
115115
exit 1

func/rebuild.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,13 +528,13 @@ rebuild_mail_domain_conf() {
528528
if [ ! -z "$local_ip" ]; then
529529
IP_RDNS=$(is_ip_rdns_valid "$local_ip")
530530
if [ ! -z "$IP_RDNS" ]; then
531-
if [ $(grep -s "^${domain}:" /etc/exim4/mailhelo.conf) ]; then
531+
if [ -f /etc/exim4/mailhelo.conf ] && [ $(grep -s "^${domain}:" /etc/exim4/mailhelo.conf) ]; then
532532
sed -i "/^${domain}:/c\\${domain}:${IP_RDNS}" /etc/exim4/mailhelo.conf
533533
else
534534
echo ${domain}:${IP_RDNS} >> /etc/exim4/mailhelo.conf
535535
fi
536536
else
537-
sed -i "/^${domain}:/d" /etc/exim4/mailhelo.conf
537+
sed -i "/^${domain}:/d" /etc/exim4/mailhelo.conf >/dev/null 2>&1
538538
fi
539539
fi
540540

func/upgrade.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,13 @@ upgrade_init_backup() {
149149
fi
150150
fi
151151
if [ ! -z "$FTP_SYSTEM" ]; then
152-
cp -f /etc/$FTP_SYSTEM.conf $HESTIA_BACKUP/conf/$FTP_SYSTEM/
152+
if [ "$FTP_SYSTEM" = "vsftpd" ]; then
153+
cp -f /etc/$FTP_SYSTEM.conf $HESTIA_BACKUP/conf/$FTP_SYSTEM/
154+
fi
155+
156+
if [ "$FTP_SYSTEM" = "proftpd" ]; then
157+
cp -f /etc/proftpd/proftpd.conf $HESTIA_BACKUP/conf/$FTP_SYSTEM/
158+
fi
153159
fi
154160
if [ ! -z "$FIREWALL_EXTENSION" ]; then
155161
cp -f /etc/$FIREWALL_EXTENSION/*.conf $HESTIA_BACKUP/conf/$FIREWALL_EXTENSION/

0 commit comments

Comments
 (0)