Browse Source

add ServerCertificate entry in mender.conf if servert.crt was installed

MEN-2640

Changelog: Title

Based on work from:
Signed-off-by: Yevgeniy Nurseitov <enurseitov@gmail.com>

Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
1.2.x
Mirza Krak 6 years ago
parent
commit
d5e861b052
  1. 4
      convert-stage-4.sh

4
convert-stage-4.sh

@ -204,6 +204,10 @@ install_files() {
if [ -n "${server_cert}" ]; then
sudo install -m 0444 ${server_cert} ${primary_dir}/${sysconfdir}/server.crt
fi
if [ -e "${primary_dir}/${sysconfdir}/server.crt" ]; then
jq_inplace '.ServerCertificate = \"'${primary_dir}'/'${sysconfdir}'/server.crt\"' ${primary_dir}/${sysconfdir}/mender.conf
fi
}
do_install_mender() {

Loading…
Cancel
Save