Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/installto.sh')
-rwxr-xr-xbin/installto.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/installto.sh b/bin/installto.sh
index 3eb09a392..667d3ae1a 100755
--- a/bin/installto.sh
+++ b/bin/installto.sh
@@ -23,6 +23,10 @@ define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' );
require_once INSTALL_PATH . 'program/include/clisetup.php';
+if (!function_exists('system')) {
+ rcube::raise_error("PHP system() function is required. Check disable_functions in php.ini.", false, true);
+}
+
$target_dir = unslashify($_SERVER['argv'][1]);
if (empty($target_dir) || !is_dir(realpath($target_dir)))