From 979917468cebd46030cef7dc9288404932b8cc4f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 26 Aug 2024 20:33:05 -0600 Subject: [PATCH] Use uuidgen on FreeBSD --- resources/functions.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/functions.php b/resources/functions.php index cb6e23db22..55f792a832 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -149,12 +149,11 @@ function uuid() { $uuid = null; if (PHP_OS === 'FreeBSD') { - $uuid = trim(shell_exec("uuid -v 4")); + $uuid = trim(shell_exec("uuidgen")); if (is_uuid($uuid)) { return $uuid; } else { - echo "Please install the following package.\n"; - echo "pkg install ossp-uuid\n"; + echo "Please install uuidgen.\n"; exit; } } @@ -167,7 +166,7 @@ if (is_uuid($uuid)) { return $uuid; } else { - echo "Please install the uuidgen.\n"; + echo "Please install uuidgen.\n"; exit; } }