mirror of
https://github.com/hoellen/dockerfiles.git
synced 2026-10-15 21:02:20 +00:00
generate instanceid non-deterministically
This commit is contained in:
1 parent
bded641e14
commit
73058802ec
1 file changed
+2
-1
@@ -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 <<EOF;
|
||||
<?php
|
||||
\$CONFIG = array (
|
||||
|
||||
Reference in new issue
Block a user