diff --git a/rootfs/usr/local/bin/setup.sh b/rootfs/usr/local/bin/setup.sh index df29992..636c1ef 100755 --- a/rootfs/usr/local/bin/setup.sh +++ b/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 <