From 13b27dfa2899060e0d09df8bba53882530265926 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Thu, 30 May 2024 13:39:34 +0200 Subject: [PATCH] fix: patch relative paths in services install/deploy scripts --- caddy/_deploy.sh | 2 +- forgejo/_deploy.sh | 4 ++-- iptables/_deploy.sh | 2 +- sshd/_deploy.sh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/caddy/_deploy.sh b/caddy/_deploy.sh index befd2e2..0894efb 100644 --- a/caddy/_deploy.sh +++ b/caddy/_deploy.sh @@ -1,6 +1,6 @@ # Setup caddy config mkdir -p /etc/caddy -cp -R ./caddy/* /etc/caddy +cp ./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 356a0e8..30271a3 100644 --- a/forgejo/_deploy.sh +++ b/forgejo/_deploy.sh @@ -1,9 +1,9 @@ # Setup forgejo config -cp ./forgejo/* /etc/forgejo +cp ./forgejo/forgejo/* /etc/forgejo chown -R root:forgejo /etc/forgejo && chmod -R 540 /etc/forgejo # Setup forgejo service -cp ./systemd/forgejo.service /etc/systemd/system +cp ./forgejo/systemd/forgejo.service /etc/systemd/system # Start forgejo systemctl deamon-reload diff --git a/iptables/_deploy.sh b/iptables/_deploy.sh index 9ae9b56..f3740ba 100644 --- a/iptables/_deploy.sh +++ b/iptables/_deploy.sh @@ -1,2 +1,2 @@ iptables -F -source ./iptables/rules.sh +source ./iptables/iptables/rules.sh diff --git a/sshd/_deploy.sh b/sshd/_deploy.sh index 9b57060..ecefd39 100644 --- a/sshd/_deploy.sh +++ b/sshd/_deploy.sh @@ -1 +1 @@ -cp ./sshd_config /etc/ssh/sshd_config +cp ./sshd/sshd_config /etc/ssh/sshd_config