Join the community today
Register Now

Beta Branch update dynamic dmotd.sh banner to support 2 new variables in 123.09be…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Sep 16, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    10:05 AM
    Nginx 1.13.x
    MariaDB 5.5
    update dynamic dmotd.sh banner to support 2 new variables in 123.09beta01

    Code (Text):
    ENABLEMOTD_CSFMSG='y'         # motd banner csf message alert disaply
    ENABLEMOTD_LINKSMSG='y'       # motd centminmod.com links bookmark alert display
    


    When you log into Centmin Mod 123.09beta01 you get a motd banner with stats and csf firewall warning alert and links to bookmark at centminmod.com. These 2 variables when set in persistent config file /etc/centminmod/custom_config.inc can disable the CSF Firewall and Bookmark links part of the motd banner display.

    Continue reading...

    123.09beta01 branch
     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    10:05 AM
    Nginx 1.13.x
    MariaDB 5.5
    example when persistent config file /etc/centminmod/custom_config.inc has disabled these 2 variables

    Code (Text):
    ENABLEMOTD_CSFMSG='n'         # motd banner csf message alert disaply
    ENABLEMOTD_LINKSMSG='n'       # motd centminmod.com links bookmark alert display


    Code (Text):
    ===============================================================================
     - Hostname......: HOSTNAME on CentOS Linux 7.2.1511
     - Users.........: Currently 3 user(s) logged on (includes: root)
    ===============================================================================
     - CPU usage.....: 0.05, 0.03, 0.05 (1, 5, 15 min)
     - Processes.....: 131 running
     - System uptime.: 0 days 2 hours 36 minutes 12 seconds
    ===============================================================================
                  total        used        free      shared  buff/cache   available
    Mem:           1839         312         291          17        1235        1239
    Swap:          1535           2        1533
    ===============================================================================
    Filesystem              Type      Size  Used Avail Use% Mounted on
    /dev/mapper/centos-root xfs        13G  5.6G  7.5G  43% /
    devtmpfs                devtmpfs  911M     0  911M   0% /dev
    tmpfs                   tmpfs     920M     0  920M   0% /dev/shm
    tmpfs                   tmpfs     920M  8.4M  912M   1% /run
    tmpfs                   tmpfs     920M     0  920M   0% /sys/fs/cgroup
    /dev/sda1               xfs       497M  279M  218M  57% /boot
    tmpfs                   tmpfs     184M     0  184M   0% /run/user/0
    
    ===============================================================================
     Centmin Mod local code is up to date at /usr/local/src/centminmod
     no available updates at this time...
    ===============================================================================
     
  3. RB1

    RB1 Active Member

    281
    72
    28
    Nov 11, 2016
    California
    Ratings:
    +119
    Local Time:
    4:05 PM
    Nginx 1.13.x
    MariaDB 10.1.x
    banner csf message alert disaply

    or

    banner csf message alert display

    In line 3 :)
     
    • Funny Funny x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,563
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,268
    Local Time:
    10:05 AM
    Nginx 1.13.x
    MariaDB 5.5
    yeah typo :)