Skip to content
Permalink
Browse files

Attempt to fix the 'unable to write random state' issue ... need an a…

…ctual debian build to test :s
  • Loading branch information...
alexAubin committed May 16, 2019
1 parent 135aba6 commit aa65dac3d1d1736cd015348363f1a6af81ea4c8d
Showing with 2 additions and 1 deletion.
  1. +2 −1 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
}

0 comments on commit aa65dac

Please sign in to comment.
You can’t perform that action at this time.