Get the most out of your Centmin Mod LEMP stack
Become a Member

Sysadmin ~/.bashrc missing wp-cli alias

Discussion in 'Bug Reports' started by jcat, Jul 23, 2019.

  1. jcat

    jcat Member

    114
    17
    18
    Jun 21, 2015
    Ratings:
    +44
    Local Time:
    7:29 PM
    On new installs, I noticed the wp-cli alias is missing from ~/.bashrc

    123.09beta01

    Code:
    # .bashrc
    
    # User specific aliases and functions
    
    alias rm='rm -i'
    alias cp='cp -i'
    alias mv='mv -i'
    
    # Source global definitions
    if [ -f /etc/bashrc ]; then
            . /etc/bashrc
    fi
    alias wget='/usr/local/bin/wget'
    crontab () { [[ [email protected] =~ -[iel]*r ]] && echo r not allowed || command crontab "[email protected]" ;}
    alias pwdh='echo -n "$HOSTNAME"; echo " $PWD"'
    HISTTIMEFORMAT="[%d.%m.%y] %T   "
    export HISTSIZE=10000
    export HISTTIMEFORMAT
    export PS1="[\A][\[email protected]\H \W]\\$ "
    export CCACHE_DIR="/home/.ccache"
    export CC="ccache gcc"
    export CXX="ccache g++"
    export CCACHE_CPP2=yes
    export PATH="/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"
    alias postfixlog='pflogsumm -d today --verbose_msg_detail /var/log/maillog'
    alias cmdir='pushd /usr/local/src/centminmod'
    
    I've checked our recent commits and yours and don't see anything that would appear to prevent it, seeing if anyone else has done a recent install within the last 24/48 hours that see this as well.
     
  2. eva2000

    eva2000 Administrator Staff Member

    41,755
    9,401
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,446
    Local Time:
    9:29 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    definitely looks like older or unsynced 123.09beta01

    from most recent install for my new wordpress blog at https://servermanager.guide/ created with 123.09beta01's centmin.sh menu option 22 with experimental full page PHP-FPM fastcgi_cache caching method

    you're also missing the fpm-* aliases as well
    Code (Text):
    # .bashrc
    
    # User specific aliases and functions
    
    alias rm='rm -i'
    alias cp='cp -i'
    alias mv='mv -i'
    
    # Source global definitions
    if [ -f /etc/bashrc ]; then
            . /etc/bashrc
    fi
    alias wget='/usr/local/bin/wget'
    crontab () { [[ [email protected] =~ -[iel]*r ]] && echo r not allowed || command crontab "[email protected]" ;}
    alias pwdh='echo -n "$HOSTNAME"; echo " $PWD"'
    HISTTIMEFORMAT="[%d.%m.%y] %T   "
    export HISTSIZE=10000
    export HISTTIMEFORMAT
    export PS1="[\A][\[email protected]\H \W]\\$ "
    export CCACHE_DIR="/home/.ccache"
    export CC="ccache gcc"
    export CXX="ccache g++"
    export CCACHE_CPP2=yes
    export PATH="$PATH:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"
    alias postfixlog='pflogsumm -d today --verbose_msg_detail /var/log/maillog'
    . "/root/.acme.sh/acme.sh.env"
    alias wp='wp --allow-root'
    
    alias fpm-errlog='tail -10 /var/log/php-fpm/www-error.log'
    alias fpm-phperrlog='tail -10 /var/log/php-fpm/www-php.error.log'
    alias fpm-slowlog='tail -10 /var/log/php-fpm/www-slow.log'
    alias cmdir='pushd /usr/local/src/centminmod'
    
     
  3. jcat

    jcat Member

    114
    17
    18
    Jun 21, 2015
    Ratings:
    +44
    Local Time:
    7:29 PM
    Oh fail, ok in that case its because of

    Code:
    curl -O https://centminmod.com/betainstaller72.sh && chmod 0700 betainstaller72.sh && bash betainstaller72.sh
    
    Thanks!
     
  4. jcat

    jcat Member

    114
    17
    18
    Jun 21, 2015
    Ratings:
    +44
    Local Time:
    7:29 PM
    Actually, are you going to be keeping those installers updated? If not, no big deal, will specify PHP version during the install
     
  5. jcat

    jcat Member

    114
    17
    18
    Jun 21, 2015
    Ratings:
    +44
    Local Time:
    7:29 PM
    Also unrelated, I think your ads are broken =X

    upload_2019-7-22_19-9-20.png
     
  6. eva2000

    eva2000 Administrator Staff Member

    41,755
    9,401
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,446
    Local Time:
    9:29 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    all the installers are updated and all have same .bashrc routine as the installer are wrappers for centmin.sh which is what actually sets .bashrc
     
  7. eva2000

    eva2000 Administrator Staff Member

    41,755
    9,401
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,446
    Local Time:
    9:29 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    indeed i see that now will fix :)
     
  8. eva2000

    eva2000 Administrator Staff Member

    41,755
    9,401
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,446
    Local Time:
    9:29 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x