From aa65dac3d1d1736cd015348363f1a6af81ea4c8d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 16 May 2019 16:21:14 +0200 Subject: [PATCH] Attempt to fix the 'unable to write random state' issue ... need an actual debian build to test :s --- debian/postinst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 4c40d718..c81160b2 100644 --- a/debian/postinst +++ b/debian/postinst @@ -14,7 +14,8 @@ do_configure() { # Replace RANDOMID with a random hash to invalidate # old cache ... we generate this locally on each machine # to avoid leaking stuff like the version - RANDOMID=$(openssl rand -hex 4) + # https://stackoverflow.com/questions/94445/using-openssl-what-does-unable-to-write-random-state-mean + RANDOMID=$(RANDFILE=.rnd openssl rand -hex 4) sed -i "s/RANDOMID/$RANDOMID/g" /usr/share/yunohost/admin/index.html }