diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-04-12 09:24:25 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-04-12 09:24:25 +0200 |
commit | e7620812b01f3eda31ccf21f9dc5b1f17ba6ce57 (patch) | |
tree | 3e2d2508fd556b8d85830b7af31b90163e776814 /bin/update.sh | |
parent | 76573685d953e89aa1e5c773ddb485af9845c8c9 (diff) |
Installer: Remove system() function use (#1490139)
Move some functionality of scripts from bin/ into rcmail_utils class
Diffstat (limited to 'bin/update.sh')
-rwxr-xr-x | bin/update.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/update.sh b/bin/update.sh index 1dfaa961d..bfb2148f7 100755 --- a/bin/update.sh +++ b/bin/update.sh @@ -156,10 +156,8 @@ if ($RCI->configured) { // check database schema if ($RCI->config['db_dsnw']) { echo "Executing database schema update.\n"; - system("php " . INSTALL_PATH . "bin/updatedb.sh --package=roundcube --version=" . $opts['version'] - . " --dir=" . INSTALL_PATH . "SQL", $res); - - $success = !$res; + $success = rcmail_utils::db_update(INSTALL_PATH . 'SQL', 'roundcube', $opts['version'], + array('errors' => true)); } // update composer dependencies @@ -239,7 +237,7 @@ if ($RCI->configured) { // index contacts for fulltext searching if ($opts['version'] && version_compare(version_parse($opts['version']), '0.6.0', '<')) { - system("php " . INSTALL_PATH . 'bin/indexcontacts.sh'); + rcmail_utils::indexcontacts(); } if ($success) { |