Skip to content

Commit 63e7e60

Browse files
authored
Merge pull request hestiacp#6 from serghey-rodin/master
Update from master
2 parents 11e32db + 78bccef commit 63e7e60

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

bin/v-rebuild-web-domains

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ is_object_unsuspended 'user' 'USER' "$user"
3737
#----------------------------------------------------------#
3838

3939
# Deleting old web configs
40-
sed -i "/.*\/$user\//d" /etc/$WEB_SYSTEM/conf.d/vesta.conf
40+
sed -i "/.*\/$user\/conf\/web\//d" /etc/$WEB_SYSTEM/conf.d/vesta.conf
4141
if [ -e "$HOMEDIR/$user/conf/web/$WEB_SYSTEM.conf" ]; then
4242
rm $HOMEDIR/$user/conf/web/$WEB_SYSTEM.conf
4343
fi
@@ -47,7 +47,7 @@ fi
4747

4848
# Deleting old proxy configs
4949
if [ ! -z "$PROXY_SYSTEM" ]; then
50-
sed -i "/.*\/$user\//d" /etc/$PROXY_SYSTEM/conf.d/vesta.conf
50+
sed -i "/.*\/$user\/conf\/web\//d" /etc/$PROXY_SYSTEM/conf.d/vesta.conf
5151

5252
if [ -e "$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf" ]; then
5353
rm $HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf

func/domain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ replace_web_config() {
269269
fi
270270
}
271271

272-
# Delete web configuartion
272+
# Delete web configuration
273273
del_web_config() {
274274
conf="$HOMEDIR/$user/conf/web/$domain.$1.conf"
275275
if [[ "$2" =~ stpl$ ]]; then
@@ -291,7 +291,7 @@ del_web_config() {
291291
# clean-up for both config styles if there is no more domains
292292
web_domain=$(grep DOMAIN $USER_DATA/web.conf |wc -l)
293293
if [ "$web_domain" -eq '0' ]; then
294-
sed -i "/.*\/$user\/.*/d" /etc/$1/conf.d/vesta.conf
294+
sed -i "/.*\/$user\/conf\/web\//d" /etc/$1/conf.d/vesta.conf
295295
if [ -f "$conf" ]; then
296296
rm -f $conf
297297
fi

func/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ is_user_format_valid() {
532532
is_domain_format_valid() {
533533
object_name=${2-domain}
534534
exclude="[!|@|#|$|^|&|*|(|)|+|=|{|}|:|,|<|>|?|_|/|\|\"|'|;|%|\`| ]"
535-
if [[ $1 =~ $exclude ]] || [[ $1 =~ ^[0-9]+$ ]] || [[ $1 =~ "\.\." ]]; then
535+
if [[ $1 =~ $exclude ]] || [[ $1 =~ ^[0-9]+$ ]] || [[ $1 =~ "\.\." ]] || [[ $1 =~ "$(printf '\t')" ]]; then
536536
check_result $E_INVALID "invalid $object_name format :: $1"
537537
fi
538538
}

install/rhel/6/roundcube/vesta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function save($curpass, $passwd)
4848
$context = stream_context_create();
4949

5050
$result = stream_context_set_option($context, 'ssl', 'verify_peer', false);
51-
result = stream_context_set_option($context, 'ssl', 'verify_peer_name', false);
51+
$result = stream_context_set_option($context, 'ssl', 'verify_peer_name', false);
5252
$result = stream_context_set_option($context, 'ssl', 'verify_host', false);
5353
$result = stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
5454

web/inc/i18n/es.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
'Services' => 'Servicios',
2222
'Firewall' => 'Cortafuegos',
2323
'Updates' => 'Actualizaciones',
24+
'Apps' => 'Aplicaciones',
2425
'Log in' => 'Iniciar Sesión',
2526
'Log out' => 'Salir',
2627

0 commit comments

Comments
 (0)