fix a few shellcheck errors
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 2 seconds
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 2 seconds
This commit is contained in:
parent
5a5309e23a
commit
41f5d8738a
4 changed files with 5 additions and 1 deletions
|
@ -164,6 +164,7 @@ step_current="1";
|
|||
|
||||
stage_begin "Configuring software choices";
|
||||
|
||||
|
||||
source ./steps-config/10-hostname.sh;
|
||||
|
||||
if ask_yesno "Use apt-cacher-ng server?"; then
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
#shellcheck disable=SC2034
|
||||
wesher_secret="$(ask_password "wesher configuration" "Enter the wesher shared secret:")";
|
||||
|
||||
#shellcheck disable=SC2034
|
||||
wesher_join_ip="$(ask_text "wesher configuration" "Enter an IP of a host in the cluster to join:")";
|
||||
|
||||
queue_apt_install "raspberrypi-kernel-headers" "wireguard" "wesher" "wesher-systemd";
|
||||
|
|
|
@ -10,6 +10,7 @@ task_end "$?";
|
|||
task_begin "wesher: joining cluster"
|
||||
|
||||
# HACK: Ref https://github.com/costela/wesher/issues/70
|
||||
#shellcheck disable=SC2154
|
||||
WESHER_CLUSTER_KEY="${wesher_secret}" wesher /usr/local/sbin/wesher --overlay-net 172.31.250.0/16 --log-level info --join "${wesher_join_ip}" &
|
||||
|
||||
sleep 5;
|
||||
|
|
|
@ -21,7 +21,7 @@ subtask_begin "Installing configuration file";
|
|||
touch "${collectd_conf_target}";
|
||||
chmod 0600 "${collectd_conf_target}";
|
||||
#shellcheck disable=SC2154
|
||||
cat configs/collectd.conf | awk -v "user=${collectd_username}" -v "pass=${collectd_password}" '{ gsub("|||USERNAME|||", user); gsub("|||PASSWORD|||", pass); print }' >"${collectd_conf_target}";
|
||||
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_begin "Starting collectd & enabling on boot";
|
||||
|
|
Loading…
Reference in a new issue