mirror of
https://github.com/hoellen/docker-nextcloud.git
synced 2026-10-15 15:52:27 +00:00
generate instanceid non-deterministically
This commit is contained in:
1 parent
ae05183de6
commit
6e6b0e1dab
1 file changed
+2
-1
@@ -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 (
|
||||||
|
|||||||
Reference in new issue
Block a user