Update the ssl ciphers and add dhparams.pem

Fixes #218
This commit is contained in:
Johannes Zellner
2017-02-12 22:36:10 +01:00
parent 2f1998fa67
commit 1d5465f21e
2 changed files with 10 additions and 1 deletions

View File

@@ -51,6 +51,13 @@ if ! id "${USER}" 2>/dev/null; then
fi
if [[ "${is_update}" == "yes" ]]; then
# This is here, since the splash screen needs this file to be present :-(
readonly DATA_DIR="/home/${USER}/data"
if [[ ! -f "${DATA_DIR}/nginx/cert/dhparams.pem" ]]; then
mkdir -p "${DATA_DIR}/nginx/cert/"
openssl dhparam -out "${DATA_DIR}/nginx/cert/dhparams.pem" 2048
fi
echo "Setting up update splash screen"
"${box_src_tmp_dir}/setup/splashpage.sh" --data "${arg_data}" # show splash from new code
${BOX_SRC_DIR}/setup/stop.sh # stop the old code