Skip to content

Commit 0259d32

Browse files
committed
Merge branch 'main' into release
2 parents 976a3bd + 9b836a0 commit 0259d32

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1795
-707
lines changed

CHANGELOG.md

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

4+
## [1.4.4] - Service release
5+
6+
### Features
7+
8+
- Add nginx user_agent separation to desktop/mobile (e.g. for fastcgi cache)
9+
- Run phpmyadmin folder under www-data user instead of "user" improving security. (@bet0x)
10+
- Added new template for mod php users to access phpmymyadmin
11+
12+
### Bugfixes
13+
14+
- Add template for when webmail is disabled allowing to generate SSL.
15+
- Fix PHP bug in /list/log/
16+
- Fix issue with time in /list/services as it was showing as 50 minute1 instead of minutes
17+
- Add missing back buttons + fix behavoir of back buttons on login page.
18+
- Set "default" when WEB_TEMPLATE and PROXY_TEMPLATE is missing in user.conf
19+
- Add BACKEND_TEMPLATE to default package
20+
- Fix possible error occur for v-rebuild-cron-jobs #1943 (thanks @clarkchentw)
21+
- Restrict access Filemanager when SSH is enabled for the user (@bet0x)
22+
- Check for DNS domains when running v-change-sys-ip-nat (@clarkchentw)
23+
- Fix logical error in installer (@clarkchentw)
24+
425
## [1.4.3] - Service release
526

627
### Features

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.3 | [View Changelog](https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md)<br>
5+
**Latest stable release:** Version 1.4.4 | [View Changelog](https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md)<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-domain-webmail

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ check_args '2' "$#" 'USER DOMAIN [WEBMAIL] [RESTART]'
6060
is_format_valid 'user' 'domain'
6161
is_system_enabled "$WEB_SYSTEM" 'WEB_SYSTEM'
6262
is_system_enabled "$IMAP_SYSTEM" 'IMAP_SYSTEM'
63-
is_type_valid "$WEBMAIL_SYSTEM" "$webmail"
63+
is_type_valid "$WEBMAIL_SYSTEM disabled" "$webmail"
6464
is_object_valid 'user' 'USER' "$user"
6565
is_object_unsuspended 'user' 'USER' "$user"
6666
is_object_valid 'mail' 'DOMAIN' "$domain"
@@ -126,11 +126,16 @@ else
126126
if [ "$WEB_SYSTEM" = "nginx" ]; then
127127
WEBMAIL_TEMPLATE="web_system"
128128
fi
129-
else
129+
elif [ "$webmail" == "rainloop" ]; then
130130
WEBMAIL_TEMPLATE="rainloop"
131131
if [ ! -z "$PROXY_SYSTEM" ]; then
132132
PROXY_TEMPLATE="default_rainloop"
133133
fi
134+
else
135+
WEBMAIL_TEMPLATE="disabled"
136+
if [ ! -z "$PROXY_SYSTEM" ]; then
137+
PROXY_TEMPLATE="default_disabled"
138+
fi
134139
fi
135140

136141
add_webmail_config "$WEB_SYSTEM" "${WEBMAIL_TEMPLATE}.tpl"

bin/v-add-sys-pma-sso

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ sed -i "s/%API_HESTIA_PORT%/$BACKEND_PORT/g" $PMA_INSTALL/hestia-sso.php
8484

8585

8686
# Check if config already contains the keys
87-
8887
touch $PMA_CONFIG/hestia-sso.inc.php
89-
chmod 644 $PMA_CONFIG/hestia-sso.inc.php
88+
chmod 640 $PMA_CONFIG/hestia-sso.inc.php
89+
chown root:www-data $PMA_CONFIG/hestia-sso.inc.php
90+
9091
echo "<?php
9192
if(isset(\$_GET['hestia_token']) || isset(\$_COOKIE['SignonSession'])){
9293
\$cfg['Servers'][\$i]['auth_type'] = 'signon';

bin/v-add-web-domain

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ fi
169169
# Preparing domain variables
170170
prepare_web_domain_values
171171

172+
if [ -z "$WEB_TEMPLATE" ]; then
173+
WEB_TEMPLATE='default'
174+
update_user_value "$user" '$WEB_TEMPLATE' "default"
175+
fi
176+
172177
# Adding web server config
173178
add_web_config "$WEB_SYSTEM" "$WEB_TEMPLATE.tpl"
174179

@@ -180,7 +185,12 @@ if [ ! -z "$PROXY_SYSTEM" ]; then
180185
PROXY_EXT="$PROXY_EXT,exe,pdf,ppt,txt,odt,ods,odp,odf,tar,wav,bmp"
181186
PROXY_EXT="$PROXY_EXT,rtf,js,mp3,avi,mpeg,flv,html,htm"
182187
fi
183-
add_web_config "$PROXY_SYSTEM" "$PROXY_TEMPLATE.tpl"
188+
if [ -z "$PROXY_TEMPLATE" ]; then
189+
PROXY_TEMPLATE='default'
190+
update_user_value "$user" '$PROXY_TEMPLATE' "default"
191+
fi
192+
193+
add_web_config "$PROXY_SYSTEM" "$PROXY_TEMPLATE.tpl"
184194
fi
185195

186196

bin/v-change-database-owner

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ check_hestia_demo_mode
8585
#----------------------------------------------------------#
8686

8787
# Creating temporary directory
88-
tmpdir=$(mktemp -p $BACKUP -d "tmp.$database.XXXXXXXXXX" > /dev/null 2>&1)
88+
tmpdir=$(mktemp -p $BACKUP -d "tmp.$database.XXXXXXXXXX")
8989

9090
# Suspend database
9191
$BIN/v-suspend-database $owner $database > /dev/null 2>&1

bin/v-change-sys-ip-nat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ fi
7070
if [ ! -z "$old" ] && [ ! -z "$DNS_SYSTEM" ]; then
7171
for user in $($HESTIA/bin/v-list-sys-users plain); do
7272
sed -i "s/$old/$new/" $HESTIA/data/users/$user/dns.conf
73-
sed -i "s/$old/$new/" $HESTIA/data/users/$user/dns/*.conf
73+
if ls $HESTIA/data/users/$user/dns/*.conf 1> /dev/null 2>&1; then
74+
sed -i "s/$old/$new/" $HESTIA/data/users/$user/dns/*.conf
75+
fi
7476
$BIN/v-rebuild-dns-domains $user no
7577
done
7678
$BIN/v-restart-dns $restart

bin/v-delete-web-domain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ fi
9090
sed -i "/DOMAIN='$domain'/ d" $USER_DATA/web.conf
9191

9292
# Deleting proxy
93-
if [ ! -z "$PROXY_SYSTEM" ] && [ ! -z "$PROXY" ]; then
93+
if [ ! -z "$PROXY_SYSTEM" ]; then
9494
del_web_config "$PROXY_SYSTEM" "$PROXY.tpl"
9595
if [ "$SSL" = 'yes' ]; then
9696
del_web_config "$PROXY_SYSTEM" "$PROXY.stpl"

bin/v-delete-web-php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,11 @@ done
8181
# Do a blank echo to get the \n back
8282
echo
8383

84-
# Check if installation was sucessfully
84+
# Check if installation was successfully
8585
if [ -f "$php_fpm" ]; then
8686
echo "ERROR: Uninstallation failed, please run the following command manually for debugging:"
8787
echo "apt-get purge $mph"
88+
exit 1;
8889
fi
8990

9091
# Cleanup php folder

bin/v-generate-ssl-cert

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ args_usage='DOMAIN EMAIL COUNTRY STATE CITY ORG UNIT [ALIASES] [FORMAT]'
7474
check_args '7' "$#" "$args_usage"
7575
is_format_valid 'domain' 'aliases' 'format'
7676

77+
release="$(lsb_release -s -r)"
78+
if [ "$release" = "18.04" ]; then
79+
is_format_valid 'email'
80+
fi
7781

7882
if [ ! -f /root/.rnd ]; then
7983
touch /root/.rnd
@@ -108,7 +112,7 @@ if [ -z "$aliases" ]; then
108112
-batch \
109113
-subj "$subj" \
110114
-key $domain.key \
111-
-out $domain.csr #>/dev/null 2>&1
115+
-out $domain.csr >/dev/null 2>&1
112116
else
113117
for alias in $(echo $domain,$aliases |tr ',' '\n' |sort -u); do
114118
if [[ "$alias" = *[![:ascii:]]* ]]; then

0 commit comments

Comments
 (0)