From 55c90ac2c6d65b48c26567a322f4dbfc17d98ff0 Mon Sep 17 00:00:00 2001 From: Andy Roth Date: Thu, 21 Sep 2023 11:21:00 -0700 Subject: [PATCH] fix: move zarf from /usr/local/bin to /usr/bin, which is in root's PATH (#55) --- templates/user_data.sh.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/user_data.sh.tpl b/templates/user_data.sh.tpl index cfc7a98..58fe021 100644 --- a/templates/user_data.sh.tpl +++ b/templates/user_data.sh.tpl @@ -57,8 +57,8 @@ curl -s https://fluxcd.io/install.sh | sudo bash wget -O /home/${ssh_user}/zarf https://github.com/defenseunicorns/zarf/releases/download/${zarf_version}/zarf_${zarf_version}_Linux_amd64 wget -O /home/${ssh_user}/zarf-init-amd64-${zarf_version}.tar.zst https://github.com/defenseunicorns/zarf/releases/download/${zarf_version}/zarf-init-amd64-${zarf_version}.tar.zst chmod +x /home/${ssh_user}/zarf -cp /home/${ssh_user}/zarf /usr/local/bin/zarf -cp /home/${ssh_user}/zarf-init-amd64-${zarf_version}.tar.zst /usr/local/bin/zarf-init-amd64-${zarf_version}.tar.zst +cp /home/${ssh_user}/zarf /usr/bin/zarf +cp /home/${ssh_user}/zarf-init-amd64-${zarf_version}.tar.zst /usr/bin/zarf-init-amd64-${zarf_version}.tar.zst chown -R ${ssh_user}:${ssh_user} /home/${ssh_user}/ # Create the /usr/share/collectd directory and types.db file