Learn about Centmin Mod LEMP Stack today
Register Now

Beta Branch force IPv4 connection for all wget & curl calls

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jul 4, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    30,168
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    6:33 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Winner Winner x 1
  2. eva2000

    eva2000 Administrator Staff Member

    30,168
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    6:33 PM
    Nginx 1.13.x
    MariaDB 5.5
    just fixed a bug in 123.09beta01 due to change to force wget and curl to use IPv4 only Beta Branch - force IPv4 connection for all wget & curl calls due to -4 flag not liking being placed after -n flag in wget

    For existing 123.09beta01 installs which were installed more than 24hrs ago, to update your server's 123.09beta01 code, run centmin.sh menu option 23, submenu option 2.

    For 123.09beta01 installs made in last 24hrs of this post, you will need to run a quick script to fix up the missing stuff due to wget failing to download during the bug

    run command below to run wget-fix.sh which will patch up what's missing
    Code (Text):
    curl -sL https://gist.github.com/centminmod/eb59205e4a2b3ecc563fbcbc9af820a4/raw/wget-fix.sh | bash
    

    example output
    Code (Text):
    curl -sL https://gist.github.com/centminmod/eb59205e4a2b3ecc563fbcbc9af820a4/raw/wget-fix.sh | bash
    update centmin mod local code
    No local changes to save
    Already up-to-date.
    
    install wp-cli
    installing...
    
    2017-07-04 21:35:20 URL:http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz [12573228/12573228] -> "/usr/share/GeoIP/GeoLiteCity.dat.gz" [1]
    check /usr/share/GeoIP/GeoIPCity.dat
    -rw-r--r-- 1 root root 19M Jul  4 19:00 /usr/share/GeoIP/GeoIPCity.dat
    check pflogsumm command
    Postfix log summaries for Jul  4
    
    Grand Totals
    ------------
    messages
    
          0   received
          0   delivered
          0   forwarded
          0   deferred
          0   bounced
          0   rejected (0%)
          0   reject warnings
          0   held
          0   discarded (0%)
    
          0   bytes received
          0   bytes delivered
          0   senders
          0   sending hosts/domains
          0   recipients
          0   recipient hosts/domains
    
    
    Per-Hour Traffic Summary
    ------------------------
        time          received  delivered   deferred    bounced     rejected
        --------------------------------------------------------------------
        0000-0100           0          0          0          0          0
        0100-0200           0          0          0          0          0
        0200-0300           0          0          0          0          0
        0300-0400           0          0          0          0          0
        0400-0500           0          0          0          0          0
        0500-0600           0          0          0          0          0
        0600-0700           0          0          0          0          0
        0700-0800           0          0          0          0          0
        0800-0900           0          0          0          0          0
        0900-1000           0          0          0          0          0
        1000-1100           0          0          0          0          0
        1100-1200           0          0          0          0          0
        1200-1300           0          0          0          0          0
        1300-1400           0          0          0          0          0
        1400-1500           0          0          0          0          0
        1500-1600           0          0          0          0          0
        1600-1700           0          0          0          0          0
        1700-1800           0          0          0          0          0
        1800-1900           0          0          0          0          0
        1900-2000           0          0          0          0          0
        2000-2100           0          0          0          0          0
        2100-2200           0          0          0          0          0
        2200-2300           0          0          0          0          0
        2300-2400           0          0          0          0          0
    
    Host/Domain Summary: Message Delivery
    --------------------------------------
     sent cnt  bytes   defers   avg dly max dly host/domain
     -------- -------  -------  ------- ------- -----------
    
    Host/Domain Summary: Messages Received
    ---------------------------------------
     msg cnt   bytes   host/domain
     -------- -------  -----------
    
    Senders by message count: none
    
    Recipients by message count: none
    
    Senders by message size: none
    
    Recipients by message size: none
    
    message deferral detail: none
    
    message bounce detail (by relay): none
    
    message reject detail: none
    
    message reject warning detail: none
    
    message hold detail: none
    
    message discard detail: none
    
    smtp delivery failures: none
    
    Warnings: none
    
    Fatal Errors: none
    
    Panics: none
    
    Master daemon messages
    ----------------------
          1   daemon started -- version 2.10.1, configuration /etc/postfix
    
    fixes completed
    

    What's missing is just geoip database download, wp-cli install and pflogsumm command which is aliased via postfixlog command to report postfix daily stats for email i.e.
    Code (Text):
    postfixlog
    Postfix log summaries for Jul  4
    
    Grand Totals
    ------------
    messages
    
          0   received
          0   delivered
          0   forwarded
          0   deferred
          0   bounced
          0   rejected (0%)
          0   reject warnings
          0   held
          0   discarded (0%)
    
          0   bytes received
          0   bytes delivered
          0   senders
          0   sending hosts/domains
          0   recipients
          0   recipient hosts/domains
    
    
    Per-Hour Traffic Summary
    ------------------------
        time          received  delivered   deferred    bounced     rejected
        --------------------------------------------------------------------
        0000-0100           0          0          0          0          0 
        0100-0200           0          0          0          0          0 
        0200-0300           0          0          0          0          0 
        0300-0400           0          0          0          0          0 
        0400-0500           0          0          0          0          0 
        0500-0600           0          0          0          0          0 
        0600-0700           0          0          0          0          0 
        0700-0800           0          0          0          0          0 
        0800-0900           0          0          0          0          0 
        0900-1000           0          0          0          0          0 
        1000-1100           0          0          0          0          0 
        1100-1200           0          0          0          0          0 
        1200-1300           0          0          0          0          0 
        1300-1400           0          0          0          0          0 
        1400-1500           0          0          0          0          0 
        1500-1600           0          0          0          0          0 
        1600-1700           0          0          0          0          0 
        1700-1800           0          0          0          0          0 
        1800-1900           0          0          0          0          0 
        1900-2000           0          0          0          0          0 
        2000-2100           0          0          0          0          0 
        2100-2200           0          0          0          0          0 
        2200-2300           0          0          0          0          0 
        2300-2400           0          0          0          0          0 
    
    Host/Domain Summary: Message Delivery 
    --------------------------------------
     sent cnt  bytes   defers   avg dly max dly host/domain
     -------- -------  -------  ------- ------- -----------
    
    Host/Domain Summary: Messages Received 
    ---------------------------------------
     msg cnt   bytes   host/domain
     -------- -------  -----------
    
    Senders by message count: none
    
    Recipients by message count: none
    
    Senders by message size: none
    
    Recipients by message size: none
    
    message deferral detail: none
    
    message bounce detail (by relay): none
    
    message reject detail: none
    
    message reject warning detail: none
    
    message hold detail: none
    
    message discard detail: none
    
    smtp delivery failures: none
    
    Warnings: none
    
    Fatal Errors: none
    
    Panics: none
    
    Master daemon messages
    ----------------------
          1   daemon started -- version 2.10.1, configuration /etc/postfix
    
     
    Last edited: Jul 5, 2017