minor follow up (#131)

This commit is contained in:
Meliox 2025-09-08 21:47:32 +02:00 committed by GitHub
parent 1f5b73e6ac
commit 67338aabbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -406,7 +406,6 @@ collect_sensors_output() {
fi
#region sensors heredoc
sed -i '/my \$dinfo = df('\''\/'\'', 1);/i\
\
# Collect sensor data from lm-sensors\
$res->{sensorsOutput} = `'"$sensorsCmd"'`;\
\
@ -443,7 +442,6 @@ collect_ups_output() {
# region ups heredoc
sed -i "/my \$dinfo = df('\/', 1);/i\\
\\
# Collect UPS status information\\
sub get_upsc {\\
my \$cmd = '$ups_cmd';\\
@ -470,7 +468,10 @@ collect_system_info() {
| paste -sd " " - \
| sed 's/ |$//')
#region system info heredoc
sed -i "/my \$dinfo = df('\/', 1);/i\\\t\t\$res->{systemInfo} = \"$(echo "$systemInfoCmd")\";\n" "$NODES_PM_FILE"
sed -i "/my \$dinfo = df('\/', 1);/i\\
# Add system information to response\\
\$res->{systemInfo} = \"$(echo "$systemInfoCmd")\";\\
" "$NODES_PM_FILE"
#endregion system info heredoc
info "System information retriever added to \"$output_file\"."
}