Welcome to Centmin Mod Community
Register Now

Beta Branch update inc/wpsetup.inc auto updater script

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

  1. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:58 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    update inc/wpsetup.inc auto updater script

    script setup on centmin.sh menu option 22 wordpress auto install creates an cronjob script at /root/tools/wp_updater_${vhostname}.sh where vhostname = your site domain name. This script auto updates wordpress via wp-cli cmd tool


    however it's own wp-cli cli update command doesn't work as root user

    this doesn't work as root user

    Code:
    /usr/bin/wp cli update --allow-root
    so changing and replacing that line in /root/tools/wp_updater_${vhostname}.sh with following manual update lines

    Code:
    echo "update wp-cli"
    rm -rf /usr/bin/wp
    wget -cnv --no-check-certificate https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O /usr/bin/wp --tries=3
    chmod 0700 /usr/bin/wp
    Continue reading...

    123.09beta01 branch
     
    Last edited: Sep 16, 2015