Create RANDFILE if it does not exist
This commit is contained in:
@@ -38,6 +38,12 @@ unset UNPRIVILEGED_USER_PASSWORD
|
||||
# Dump environment variables
|
||||
export-env >> /etc/profile.d/env.sh
|
||||
|
||||
# Create RANDFILE if it does not exist
|
||||
RANDFILE=${RANDFILE-${HOME}/.rnd}
|
||||
if [ ! -f "${RANDFILE}" ]; then
|
||||
dd if=/dev/urandom of="${RANDFILE}" bs=256 count=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
# Generate self-signed certificate
|
||||
if [ ! -f "${RDP_TLS_KEY_PATH:?}" ] || [ ! -f "${RDP_TLS_CERT_PATH:?}" ]; then
|
||||
KEY_FILE=${RDP_TLS_KEY_PATH:?}
|
||||
|
||||
Reference in New Issue
Block a user