This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

24 lines
566 B
Bash

#!/bin/sh -ex
source /usr/local/bin/entrypoint_public.sh
# start
ldconfig
parse_args "$@"
mkdir -p /opt/tsg/etc/
render_template cert_store.ini.j2 /opt/tsg/certstore/conf/cert_store.ini
render_template tsg_device_tag.json.j2 /opt/tsg/etc/tsg_device_tag.json
DEVICE_SN=$(read_device_sn_from_k8s_node_info)
echo "{\"sn\": \"$DEVICE_SN\"}" > /opt/tsg/etc/tsg_sn.json
if [ ${IS_ENABLE_PRESTART} == "true" ]; then
enable_prestart
fi
if [ ${IS_ENABLE_INTERACTIVE_STARTUP} == "true" ]; then
enable_interactive_startup
fi
exec /opt/tsg/certstore/bin/certstore