Matthias Stecher
49bb527dea
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.
5 lines
144 B
Bash
Executable file
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
|