$OpenBSD: patch-bin_update_sh,v 1.3 2015/06/08 09:14:32 sthen Exp $
--- bin/update.sh.orig	Fri Jun  5 13:47:17 2015
+++ bin/update.sh	Mon Jun  8 10:03:29 2015
@@ -156,7 +156,7 @@ 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']
+    system("${MODPHP_BIN} " . INSTALL_PATH . "bin/updatedb.sh --package=roundcube --version=" . $opts['version']
       . " --dir=" . INSTALL_PATH . "SQL", $res);
 
     $success = !$res;
@@ -240,12 +240,12 @@ if ($RCI->configured) {
       echo "\n    }\n\n";
     }
 
-    echo "NOTE: Update dependencies by running `php composer.phar update --no-dev`\n";
+    echo "NOTE: Update dependencies by running `${MODPHP_BIN} composer.phar update --no-dev`\n";
   }
 
   // index contacts for fulltext searching
   if ($opts['version'] && version_compare(version_parse($opts['version']), '0.6.0', '<')) {
-    system("php " . INSTALL_PATH . 'bin/indexcontacts.sh');
+    system("${MODPHP_BIN} " . INSTALL_PATH . 'bin/indexcontacts.sh');
   }
 
   if ($success) {
