"wp-auto-update.rb" is a ruby script to update WordPress websites. Once you setup a configuration file (YAML format), it cruises multiple websites and updates WordPress automatically.
It updates WordPress websites the following processes.
- Exports database
- Updates WordPress core files
- Updates all plugins (only distributed on plugins directory)
- Updates all themes (only distributed on themes directory)
- Updates WP-CLI
- Checks the website is whether in active or inactive
- SSH access is allowed
- WP-CLI
- Ruby
- Net::SSH package (apply with
gem install net-ssh) - Mail package (apply with
gem install mail)
- Net::SSH package (apply with
- SSH access is allowed (also possible SSH public key authentication)
- WP-CLI
- wp-cli.setup.sh
A shell script to install "WP-CLI" into common hosting servers.
git cloneor download and expand ZIP file- Rename "config-sample.yml" to "config.yml" (is the configuration file)
- Setup "config.yml"
- Execute
ruby wp-auto-update.rb
Please refer to "config-sample.yml". (*) = required.
- from
E-mail address of check results sender (*) - to
E-mail address that you want to receive (*) - subject
Check results subject (also possible ISO 8601 date format)
- name
Identify name (*) - url
Site URL (*) - host
Hostname (FQDN, also possible IP address) (*) - user
Username (*) - pass
Password (you can omit under SSH public key authentication) - port
SSH port (*) - key
Path to the private key file (it requires under SSH public key authentication) - phrase
Passphrase (it requires under SSH public key authentication) - dir
Path to the directory WordPress is installed (*) - force
Force updating (wp core update --force) either or not (boolean, default = false) - command
Specify to run PHP or WP-CLI with full path
Execute with -f option, you can choose any configuration files. If it is empty, the script reads "config.yml" in the same directory.
ruby wp-auto-update.rb -f config.foobar.yml
- Please use At Your Own Risk
- Tested environment (hosting servers)
- SAKURA Rental Server (Japan)
- Heteml (Japan)
- LOLIPOP! Rentel Server (Japan)
- XSERVER (Japan)
- 0.6.5 (2020-04-02)
- Updated
wp languagecommand
- Updated
- 0.6.4 (2019-05-23)
- Fixed
bashsection
- Fixed
- 0.6.3 (2019-05-17)
- Added
commandconfiguration - Removed
bashsection
- Added
- 0.6.2 (2018-02-11)
- Fixed
wp core updatecommand
- Fixed
- 0.6.1 (2018-02-11)
- Fixed
wp core updatecommand
- Fixed
- 0.6.0 (2018-02-10)
- Updated
wp core updatecommand - Added
forceconfiguration
- Updated
- 0.5.2 (2018-02-09)
- Changed GPL license to MIT
- 0.5.1 (2017-06-21)
- Fixed
wp cli updatecommand
- Fixed
- 0.5.0 (2017-03-17)
- Updated
wp core updatecommand - Added
wp core languagecommand
- Updated
- 0.4.0 (2017-02-23)
- Updated
wp db exportcommand - Changed MIT license to GPL
- Updated
- 0.3.0 (2015-12-10)
- Added
wp cli updatecommand
- Added
- 0.2.0 (2015-05-19)
- Sending update results via E-mail
- Added alive checker
- 0.1.0 (2015-05-15)
- Opening to the public