From e45944c2d8b87fd9709c728ef7e2a434a97a703e Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Mon, 2 Sep 2024 13:25:52 -0700 Subject: [PATCH] Overwrite files when pulling stack --- homelab/stacks/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homelab/stacks/deploy.sh b/homelab/stacks/deploy.sh index da42e176..3ba23b18 100644 --- a/homelab/stacks/deploy.sh +++ b/homelab/stacks/deploy.sh @@ -1,12 +1,12 @@ #!/bin/bash # run me with -# curl https://gitea.jafner.tools/Jafner/Jafner.net/raw/branch/main/homelab/stacks/deploy.sh | bash +# curl https://gitea.jafner.tools/Jafner/Jafner.net/raw/branch/main/homelab/stacks/deploy.sh | bash -s STACK=$1 mkdir -p /tmp/stack/$STACK git clone -n --depth=1 --filter=tree:0 https://gitea.jafner.tools/Jafner/Jafner.net.git /tmp/stack/$STACK && cd /tmp/stack/$STACK git sparse-checkout set --no-cone homelab/stacks/$STACK && git checkout -mv homelab/stacks/$STACK $HOME/stacks/ +mv -f homelab/stacks/$STACK $HOME/stacks/ cd $HOME/stacks/$STACK && rm -rf /tmp/stack/$STACK echo -e "$(cat $HOME/.age/$HOSTNAME.host.key)\n$AGE_DEPLOY_KEY" > $HOME/.age/combined.key