mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Attempt to fix the 'unable to write random state' issue ... need an actual debian build to test :s
This commit is contained in:
parent
135aba64a7
commit
aa65dac3d1
1 changed files with 2 additions and 1 deletions
3
debian/postinst
vendored
3
debian/postinst
vendored
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue