Update XMLDefault loadinfo

This commit is contained in:
Diederik de Groot
2020-07-14 17:38:11 +02:00
parent bc1b251248
commit 3d1121f2fb
3 changed files with 157 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
ROOTDIR=/data/development/sccp/sources/tftp
if [ $# -gt 0 ]; then
# Encrypt SEPMAC.cnf.xml
openssl enc -aes-256-cbc -salt -in ../../tftpboot/settings/${1} -out ../../tftpboot/settings/${1}.enc -k tftp.pem
../../tools/certutils/sgnfile -b ../../tftpboot/settings/${1}.enc -c tftp.pem
fi
openssl enc -aes-256-cbc -salt -in $ROOTDIR/data/settings/${1} -out $ROOTDIR/data/settings/${1}.enc -k $ROOTDIR/etc/certs/tftp.pem
../../tools/certutils/sgnfile -b $ROOTDIR/data/settings/${1}.enc -c $ROOTDIR/etc/certs/tftp.pem
fi