More explicitly overwrite files during move
Some checks are pending
Stacks CICD / Setup (push) Waiting to run

This commit is contained in:
Joey Hafner 2024-09-02 13:27:22 -07:00
parent e45944c2d8
commit 03bbcd5538
No known key found for this signature in database

View File

@ -6,7 +6,8 @@ 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 -f homelab/stacks/$STACK $HOME/stacks/
mv -f homelab/stacks/$STACK/* $HOME/stacks/$STACK/
mv -f homelab/stacks/$STACK/.* $HOME/stacks/$STACK/
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