@@ -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
|
||||
|
||||
Reference in New Issue
Block a user