From 73058802ec05c15eb12069944d41034d021d1615 Mon Sep 17 00:00:00 2001 From: hoellen Date: Mon, 25 May 2020 14:41:07 +0200 Subject: [PATCH] generate instanceid non-deterministically --- nextcloud/rootfs/usr/local/bin/setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nextcloud/rootfs/usr/local/bin/setup.sh b/nextcloud/rootfs/usr/local/bin/setup.sh index df29992..636c1ef 100755 --- a/nextcloud/rootfs/usr/local/bin/setup.sh +++ b/nextcloud/rootfs/usr/local/bin/setup.sh @@ -8,7 +8,8 @@ CONFIGFILE=/config/config.php # Create an initial configuration file. -instanceid=oc$(echo $PRIMARY_HOSTNAME | sha1sum | fold -w 10 | head -n 1) +instanceid=oc$(openssl rand -hex 6 | head -c 10) + cat > $CONFIGFILE <