Explorar el Código

Merge branch 'staging/fixes' into main

Kristan Kenney hace 5 años
padre
commit
32062dc579
Se han modificado 6 ficheros con 34 adiciones y 33 borrados
  1. 1 1
      CHANGELOG.md
  2. 5 0
      bin/v-add-mail-domain
  3. 1 1
      func/rebuild.sh
  4. 1 1
      install/deb/apache2/apache2.conf
  5. 4 0
      web/edit/user/index.php
  6. 22 30
      web/inc/i18n/es.php

+ 1 - 1
CHANGELOG.md

@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
 ### Features
 
 ### Bugfixes
-
+- Create mailhelo.conf if it doesnt exist to prevent a error message during grep.
  
 ## [1.2.1] - Service Release 1 (beta)
 ### Features

+ 5 - 0
bin/v-add-mail-domain

@@ -101,6 +101,11 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
         echo "$local_ip" > $HOMEDIR/$user/conf/mail/$domain/ip
     fi
 
+    # Touch mailhelo.conf if it doesnt exist
+    if [ ! -f "/etc/exim4/mailhelo.conf" ]; then
+        touch /etc/exim4/mailhelo.conf
+    fi
+
     # Setting HELO for mail domain
     if [ ! -z "$local_ip" ]; then
         IP_RDNS=$(is_ip_rdns_valid "$local_ip")

+ 1 - 1
func/rebuild.sh

@@ -15,7 +15,7 @@ rebuild_user_conf() {
     chmod 660 $USER_DATA/stats.log
     
     # Update FNAME LNAME to NAME
-    if [ -z $NAME ]; then 
+    if [ -z "$NAME" ]; then 
         NAME="$FNAME $LNAME"
         sed -i "s/FNAME='$FNAME'/NAME='$NAME'/g" $USER_DATA/user.conf
         sed -i "/LNAME='$LNAME'/d" $USER_DATA/user.conf  

+ 1 - 1
install/deb/apache2/apache2.conf

@@ -80,7 +80,7 @@ LogFormat "%{Referer}i -> %U" referer
 LogFormat "%{User-agent}i" agent
 LogFormat "%b" bytes
 
-Include conf.d/
+Include conf.d/*.conf
 IncludeOptional conf.d/domains/*.conf
 
 # Include the virtual host configurations:

+ 4 - 0
web/edit/user/index.php

@@ -58,6 +58,10 @@ if ( $v_suspended == 'yes' ) {
 $v_time = $data[$v_username]['TIME'];
 $v_date = $data[$v_username]['DATE'];
 
+if(empty($v_phpcli)){
+   $v_phpcli = substr(DEFAULT_PHP_VERSION,4);
+}
+
 // List packages
 exec (HESTIA_CMD."v-list-user-packages json", $output, $return_var);
 $packages = json_decode(implode('', $output), true);

+ 22 - 30
web/inc/i18n/es.php

@@ -235,7 +235,6 @@ $LANG['es'] = array(
     'Normal password'  => 'Contraseña normal',
     'database'  => 'base de datos',
     'User'  => 'Usuario',
-    'Host'  => 'Host',
     'Charset'  => 'Codificación de caracteres',
     'Min'  => 'Minuto',
     'Hour'  => 'Hora',
@@ -581,7 +580,7 @@ $LANG['es'] = array(
     'ftp' => 'FTP',
     'sftp' => 'SFTP',
     'SFTP Chroot' => 'SFTP Chroot',
-    'FileSystem Disk Quota' => 'FileSystem - Cuota de disco',
+    'FileSystem Disk Quota' => 'Cuota de disco',
     'Hestia Control Panel Plugins' => 'Plugins de Hestia Control Panel',
     'preview' => 'previsualizar',
     'Reseller Role' => 'Rol de Revendedor',
@@ -594,7 +593,6 @@ $LANG['es'] = array(
     'sort by' => 'ordenar por',
     'Date' => 'Fecha',
     'Starred' => 'Favorito',
-    'Name' => 'Nombre',
 
     'save to favorites' => 'guardar en favoritos',
 
@@ -751,7 +749,7 @@ $LANG['es'] = array(
 
     'Email Credentials' => 'Enviar credenciales al correo',
 
-    'Theme' => 'Aspecto',
+    'Theme' => 'Tema',
     'Operating System' => 'Sistema operativo',
 
     'Please wait while php is installed or removed' => 'Los cambios pueden tardar unos minutos en guardarse. Espere hasta que se complete el proceso y no actualice la página.',
@@ -829,7 +827,7 @@ $LANG['es'] = array(
     //Server
     'Restart' => 'Reiniciar',
     'Mail Server' => 'Servidor de correo',
-    'Enabled multi PHP versions' => 'Versiones PHP habilitadas',
+    'Enabled multi PHP versions' => 'Habilitar múltiples versiones de PHP',
     'Service' => 'Servicio',
     'Description' => 'Descripción',
     
@@ -856,40 +854,34 @@ $LANG['es'] = array(
     'Enable 2FA' => 'Habilitar autenticación de dos factores',
     'Please scan the code below in your 2FA application:' => 'Para terminar de configurar la autenticación de dos factores, escanee el código QR a continuación<br />usando una aplicación de autenticación (como <a href="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2">Autenticador de Google</a>):',
     '2FA Reset Code:' => 'Código de recuperación de cuenta:',
-    
-    'Records_DNS' => 'Registros',
-    'backend server' => 'Backend Server',
-    
-    //list user 
-    'Name' => 'Name',
+
+  //list user 
+    'Name' => 'Nombre',
     //Add / Edit user
-    'Contact' => 'Name',
-    'GREETINGS_GORDON' => "Hello, %s,\n",
-    
+    'Contact' => 'Contacto',
+    'GREETINGS_GORDON' => "Hola, %s,\n",
     //List Mail Accounts
     'Forwarding' => 'Reenvío',
-
     //Cron Jobs
     'Cron Job' => 'Tarea Programada',
-    //Edit server 
-    'Host' => 'Host',
-  
-      //list Backups
-    '1 backups' => '1 copia de seguridad',
-    '%s backups' => '%s copias de seguridad',
+    //Edit server
+    'backend server' => 'Servidor de Backend',
+    'Host' => 'Anfitrión',
+    //list Backups
+    '1 backups' => '1 respaldo',
+    '%s backups' => '%s respaldos',
     //list Firewall Rules
-    '1 firewall rule' => '1 regla de firewall',
-    '%s firewall rules' => '%s reglas de firewall',
+    '1 firewall rule' => '1 regla de cortafuegos',
+    '%s firewall rules' => '%s reglas de cortafuegos',
     //list ip
-    '1 banned IP address' => '1 dirección IP prohibida',
-    '%s banned IP addresses' => '%s direcciones IP prohibidas', 
+    '1 banned IP address' => '1 dirección IP bloqueada',
+    '%s banned IP addresses' => '%s direcciones IP bloqueadas', 
     //list DNS
     'Records_DNS' => 'Registros',
     //Dowload Backup
-    'BACKUP_DOWNLOAD_SCHEDULED' => 'La descarga para copia de seguridad ha sido programada.',
-    
-    'backend server' =>  'Servidor de Backend',
+    'BACKUP_DOWNLOAD_SCHEDULED' => 'La descarga del respaldo ha sido programada.',
+  
+    'traffic' => 'Tráfico',
+    'disk' => 'Disco',
 
-    'traffic' => 'Traffic',
-    'disk' => 'Disk',
 );