|Benjamin Renard 3f9d4b38e8 Change README format to markdown||1 month ago|
|.gitignore||8 years ago|
|README.md||1 month ago|
|check_rc_upgrade.sh||1 month ago|
This script permit to check if an Roundcube Webmail is up to date.
It retreive current stable version on Roundcube Webmail Website and compare it to the local version. If the local version is different than the current stable version, it notify you by email.
The original script it design to be run by cron, but you could now use the script as Nagios check plugin (-n parameter).
The script could also help you to upgrade your installation. By running the script with the -u parameter, it will automatically :
Usage : ./check_rc_upgrade.sh [-v] [-n] [-d] [-u] [-c] -v Verbose mode -n Nagios mode -S Don't check SSL certificate (Wget only) -d Download new release -u Upgrade installation -c Use curl instead of wget -a Just run after_upgrade function -j Just display current stable version -h Display this help
The configuration of this script is located on top of it. It recommand to copy the variables in a second file check_rc_upgrade.sh.local. This file will be included if present.
RC_HOME: The full path of your Roundcube Webmail installation
SEND_EVERY_NB_DAY: The frequency of upgrade available notification (in days, 7 by default)
CACHE: The path of a cache file use to keep the lastest upgrade notification. (By default : .cache_check_upgrade file in the parent directory of your Roundcube Webmail installation)
CACHE_FAILED: The path of a cache file use to keep the number of check failed. (By default : $CACHE suffix with '.failed')
MAX_CHECK: The maximum number of attempts to retreive current stable version on Roundcube Webmail Website. (10 by default)
MAX_FAILED: The maximum number of check failed before notify by email (3 by default)
SLEEP_ON_FAILED: The number of second to sleep between to attempts to retreive current stable version on Roundcube Webmail Website. (10 by default)
CHECK_URL: The URL use to retrieve the lastest Roundcube Webmail version. (By default : http://www.roundcube.net/download)
DOWNLOAD: If this variable is set to 1, the newest version will be automatically download in the download directory. (Default : 0)
DOWNLOAD_DIR: The path of the download directory. (Default : upstream directory in the parent directory of your Roundcube Webmail installation)