generate instanceid non-deterministically

This commit is contained in:
Wonderfall 2020-01-27 13:48:13 +01:00
parent ae05183de6
commit 6e6b0e1dab

View File

@ -8,7 +8,8 @@ CONFIGFILE=/config/config.php
# Create an initial configuration file. # 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 <<EOF; cat > $CONFIGFILE <<EOF;
<?php <?php
\$CONFIG = array ( \$CONFIG = array (