From d94bc3342d7947541c2a698e43d8b7f89b03496e Mon Sep 17 00:00:00 2001 From: Roman Demidov Date: Mon, 12 Dec 2022 11:46:59 +0300 Subject: [PATCH] Fix #59830: Missing JWT enable notice at the log (#116) --- bin/documentserver-start.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/documentserver-start.sh b/bin/documentserver-start.sh index 19fe051..ab73bad 100755 --- a/bin/documentserver-start.sh +++ b/bin/documentserver-start.sh @@ -52,6 +52,8 @@ JWT_SECRET=$(snapctl get onlyoffice.jwt-secret) if [ "${JWT_SECRET}" == "default-jwt-secret" ]; then RANDOM_STRING=$(od -An -N4 -i < /dev/urandom | md5sum | head -c 10) snapctl set onlyoffice.jwt-secret=$RANDOM_STRING + + echo "JWT is enabled by default. A random secret is generated automatically. Run the command \"sudo snap get onlyoffice-ds onlyoffice.jwt-secret\" to get information about JWT." fi $SNAP/usr/bin/python $SNAP/usr/bin/supervisord -n -c $SNAP_DATA/etc/supervisor/supervisord.conf