20-collectd: fixup
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 3 seconds

This commit is contained in:
Starbeamrainbowlabs 2022-08-06 21:47:09 +01:00
parent 08ca3831d5
commit 7d54bdf5de
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -21,7 +21,7 @@ subtask_begin "Installing configuration file";
touch "${collectd_conf_target}"; touch "${collectd_conf_target}";
chmod 0600 "${collectd_conf_target}"; chmod 0600 "${collectd_conf_target}";
#shellcheck disable=SC2154 #shellcheck disable=SC2154
awk -v "user=${collectd_username}" -v "pass=${collectd_password}" '{ gsub("|||USERNAME|||", user); gsub("|||PASSWORD|||", pass); print }' >"${collectd_conf_target}" <"configs/collectd.conf"; awk -v "user=${collectd_username}" -v "pass=${collectd_password}" '{ gsub("\\|\\|\\|USERNAME\\|\\|\\|", user); gsub("\\|\\|\\|PASSWORD\\|\\|\\|", pass); print }' >"${collectd_conf_target}" <"configs/collectd.conf";
subtask-end "$?"; subtask-end "$?";
subtask_begin "Starting collectd & enabling on boot"; subtask_begin "Starting collectd & enabling on boot";