From 58338a26177635cd414b026008a45d0922d13b0e Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 25 Nov 2023 12:07:25 -0800 Subject: [PATCH] Only randomize uuid for personal activation --- dist/platforms/ubuntu/entrypoint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dist/platforms/ubuntu/entrypoint.sh b/dist/platforms/ubuntu/entrypoint.sh index 0847d0c9..8b4fd2a7 100755 --- a/dist/platforms/ubuntu/entrypoint.sh +++ b/dist/platforms/ubuntu/entrypoint.sh @@ -1,7 +1,10 @@ #!/usr/bin/env bash -# Ensure machine ID is randomized -dbus-uuidgen > /etc/machine-id && mkdir -p /var/lib/dbus/ && ln -sf /etc/machine-id /var/lib/dbus/machine-id +# Ensure machine ID is randomized for personal license activation +if [[ "$UNITY_SERIAL" = F* ]]; then + echo "Randomizing machine ID for personal license activation" + dbus-uuidgen > /etc/machine-id && mkdir -p /var/lib/dbus/ && ln -sf /etc/machine-id /var/lib/dbus/machine-id +fi # # Prepare Android SDK, if needed