From caeb5f99be10de37cbb27b585536055b65f8af11 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 25 Mar 2020 17:25:58 -0600 Subject: [PATCH] Update functions.php --- resources/functions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/functions.php b/resources/functions.php index 9e3b283964..163e133646 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -105,7 +105,12 @@ function uuid() { $uuid = null; if (PHP_OS === 'FreeBSD') { - $uuid = trim(shell_exec("uuidgen")); + $uuid = trim(shell_exec("uuid -v 4")); + if (!is_uuid($uuid)) { + echo "Please install the following package.\n"; + echo "pkg install ossp-uuid\n"; + exit; + } } if (PHP_OS === 'Linux' && !is_uuid($uuid)) { $uuid = trim(file_get_contents('/proc/sys/kernel/random/uuid'));