diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-07-04 23:56:26 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-07-04 23:56:26 +0200 |
commit | 8f49e4a99c2a35f71b763177b32c2cf1fef9a8c6 (patch) | |
tree | 95bf6232931d7dcd6ee5c0281b78df56b7cf956c /bin/update.sh | |
parent | 08167e91140e533dbc52279071767813fee8401c (diff) |
Check filetype detection in installer and update script (#1489193)
Diffstat (limited to 'bin/update.sh')
-rwxr-xr-x | bin/update.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/update.sh b/bin/update.sh index 05956b933..15edc2880 100755 --- a/bin/update.sh +++ b/bin/update.sh @@ -143,6 +143,16 @@ if ($RCI->configured) { } } + // check file type detection + if ($RCI->check_mime_detection()) { + echo "WARNING: File type detection doesn't work properly!\n"; + echo "Please check the 'mime_magic' config option or the finfo functions of PHP andrun this script again.\n"; + } + if ($RCI->check_mime_extensions()) { + echo "WARNING: Mimetype to file extension mapping doesn't work properly!\n"; + echo "Please check the 'mime_types' config option and run this script again.\n"; + } + // check database schema if ($RCI->config['db_dsnw']) { echo "Executing database schema update.\n"; |