1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash # # config: 123 5 # @brief: Collect current hostname settings. # . $DREPORT_INCLUDE/functions desc="hostnamectl" file_name="hostnamectl.log" command="hostnamectl status" add_cmd_output "$command" "$file_name" "$desc"