cdist-contrib/type/__netbox/explorer/version
Matthias Stecher 49bb527dea __netbox: autogen secretkey and store at remote
The secret key is generated if it is not set via parameter and the
explorer does not return any. It will be saved in the netbox home
directory to easily read the key for the config generation.
2020-08-23 16:52:02 +02:00

5 lines
144 B
Bash
Executable file

#!/bin/sh -e
# output version if exist
version_path="/opt/netbox/netbox/cdist/version"
if [ -f "$version_path" ]; then cat "$version_path"; fi