Magellan Linux

Contents of /mcore-src/trunk/mcore-tools/src/mcore-request-configuration.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2590 - (show annotations) (download)
Thu Sep 17 15:08:45 2015 UTC (8 years, 8 months ago) by niro
File size: 416 byte(s)
-added mcore-request-configuration executable and systemd service
1 #!/bin/bash
2
3 MCORE_LIBDIR="@@MCORE_LIBDIR@@"
4 source @@SYSCONFDIR@@/mcore/mcore.conf
5 source ${MCORE_LIBDIR}/include/common.global.class
6
7 SSLSAY_IP="${MCORE_CONTROL_SERVER}"
8 SSLSAY_PORT="6666"
9
10 if [[ -z $(mcore-serial) ]] || [[ $(mcore-serial) = UNKNOWN ]]
11 then
12 decho "No serial, will not retrive configuration from server"
13 RETVAL=1
14 else
15 nsslsay_fingerprint push-config $(mcore-serial)
16 RETVAL=0
17 fi
18
19 exit ${RETVAL}