Wordpress autoupdater

wp-cli installieren -> http://wp-cli.org/

Verwenden Sie dieses Skript

#!/bin / bash

Updater(){
        wp Core Update --allow-root
        wp Core-Update-db --allow-root
        wp-Plugin Update --all --allow-root
        wp Thema Update --all --allow-root
        wp Kernsprache Update --allow-root
        CGroup = $(stat -c '% G' wp-cron.php)
        CUser = $(stat -c '% U' wp-cron.php)
        chown $ cUser:$cGroup ./* -rf
}

für i in $(find / var / www / vhosts -name wp-cron.php); machen
        wpdir = $(i echo $ | sed -r 's / wp-cron.php // g')
        echo $ wpdir
        cd $ wpdir
        Updater
erledigt