Welcome to Centmin Mod Community
Become a Member

EMAIL=''" # Server notification email address enter only 1 address

Discussion in 'Bug Reports' started by rdan, Dec 26, 2014.

Tags:
  1. rdan

    rdan Well-Known Member

    5,421
    1,386
    113
    May 25, 2014
    Ratings:
    +2,167
    Local Time:
    4:15 PM
    Mainline
    10.2
  2. eva2000

    eva2000 Administrator Staff Member

    50,489
    11,667
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,095
    Local Time:
    6:15 PM
    Nginx 1.25.x
    MariaDB 10.x
    not sure i understand, I only added the variables, nothing is actually using them besides line 4 of inc/csftweaks.inc which detects if EMAIL variable is set and inserts the email address into /etc/csf/csf.conf

    Oh you do you mean duplicate the email address set in csf.conf EMAIL= ? It shouldn't be a problem as it only replaces empty EMAIL="" with an address and csftweaks should only run for new installations only not existing ones. Is this a new installation from menu option 1 centmin.sh ?

    Code:
    if [ ! -z "$EMAIL" ]; then
        sed -i "s/LF_ALERT_TO = ""/LF_ALERT_TO = "$EMAIL"/g" /etc/csf/csf.conf
    fi
    I thought you meant you were getting duplicate server emails sent to your email address ?
     
    Last edited: Dec 26, 2014
  3. rdan

    rdan Well-Known Member

    5,421
    1,386
    113
    May 25, 2014
    Ratings:
    +2,167
    Local Time:
    4:15 PM
    Mainline
    10.2
    I have this server for several months.
    And I'm setting up my email on csf config the first day I install this server.

    Now when I use the latest .08 beta, LF_ALERT_TO has duplicate email on it.
     
  4. eva2000

    eva2000 Administrator Staff Member

    50,489
    11,667
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,095
    Local Time:
    6:15 PM
    Nginx 1.25.x
    MariaDB 10.x
    can you post what it looked like ?
     
  5. rdan

    rdan Well-Known Member

    5,421
    1,386
    113
    May 25, 2014
    Ratings:
    +2,167
    Local Time:
    4:15 PM
    Mainline
    10.2
  6. eva2000

    eva2000 Administrator Staff Member

    50,489
    11,667
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,095
    Local Time:
    6:15 PM
    Nginx 1.25.x
    MariaDB 10.x
    cheers will check it out and see :)
     
  7. rdan

    rdan Well-Known Member

    5,421
    1,386
    113
    May 25, 2014
    Ratings:
    +2,167
    Local Time:
    4:15 PM
    Mainline
    10.2
    And I don't see any other problem, but after I use .08 beta, I don't get any notifications anymore when I login on ssh or winscp.
    When I should receive a notice every time I login lately.

    Maybe something other than that also modified :(
     
  8. eva2000

    eva2000 Administrator Staff Member

    50,489
    11,667
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,095
    Local Time:
    6:15 PM
    Nginx 1.25.x
    MariaDB 10.x