Join the community today
Become a Member

Stable Branch update inc/ auto updater script

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

  1. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    9:42 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    update inc/ auto updater script

    script setup on 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

    /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

    echo "update wp-cli"
    rm -rf /usr/bin/wp
    wget -cnv --no-check-certificate -O /usr/bin/wp --tries=3
    chmod 0700 /usr/bin/wp

    Continue reading...

    Centmin Mod Github Current Stable branch

    Last edited: Sep 16, 2015