From 099672acf66cc82db8e0ac29ff5b9abdac8c491d Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Wed, 5 Jun 2024 18:39:47 +0200 Subject: [PATCH] fix: patch recursive `cp` in deploy scripts --- caddy/_deploy.sh | 2 +- forgejo/_deploy.sh | 2 +- vim/_deploy.sh | 2 +- zsh/_deploy.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/caddy/_deploy.sh b/caddy/_deploy.sh index 7d18c3e..e360c0d 100644 --- a/caddy/_deploy.sh +++ b/caddy/_deploy.sh @@ -1,6 +1,6 @@ # Setup caddy config mkdir -p /etc/caddy -cp ./caddy/caddy/* /etc/caddy +cp -a ./caddy/caddy/. /etc/caddy/ # Setup caddy service cp ./caddy/systemd/caddy.service /etc/systemd/system diff --git a/forgejo/_deploy.sh b/forgejo/_deploy.sh index fcdd1c3..5789852 100644 --- a/forgejo/_deploy.sh +++ b/forgejo/_deploy.sh @@ -1,5 +1,5 @@ # Setup forgejo config -cp ./forgejo/forgejo/* /etc/forgejo +cp -a ./forgejo/forgejo/. /etc/forgejo/ chown -R root:forgejo /etc/forgejo && chmod -R 540 /etc/forgejo # Setup forgejo service diff --git a/vim/_deploy.sh b/vim/_deploy.sh index 608aee9..7e0c7d2 100644 --- a/vim/_deploy.sh +++ b/vim/_deploy.sh @@ -1,2 +1,2 @@ # Setup vimrc -cp ./vim/vim/* /root +cp -a ./vim/vim/. /root/ diff --git a/zsh/_deploy.sh b/zsh/_deploy.sh index 64c6c89..3d2479d 100644 --- a/zsh/_deploy.sh +++ b/zsh/_deploy.sh @@ -1,3 +1,3 @@ # Setup zsh -cp ./zsh/zsh/* /root +cp -a ./zsh/zsh/. /root chsh -s /usr/bin/zsh