The creation of the RANDFILE file is not really necessary
This commit is contained in:
@@ -76,12 +76,6 @@ if [ -z "${VGL_DISPLAY-}" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create RANDFILE if it does not exist
|
|
||||||
RANDFILE=${RANDFILE-${HOME:?}/.rnd}
|
|
||||||
if [ ! -f "${RANDFILE:?}" ] && [ -c /dev/urandom ]; then
|
|
||||||
dd if=/dev/urandom of="${RANDFILE:?}" bs=256 count=1 >/dev/null 2>&1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Generate SSH keys if they do not exist
|
# Generate SSH keys if they do not exist
|
||||||
if [ ! -f /etc/ssh/ssh_host_ed25519_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_ed25519_key ]; then
|
||||||
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N '' >/dev/null
|
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N '' >/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user