commit 20efa90d0a2666a28ad4fa52097b6ff0af65eb27
parent 13dd64c95057c882acb25993f0ea1fcbcf9cb0b0
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date: Tue, 4 Jun 2024 13:09:30 +0200
feat(git): post-receive replace ln with cp
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/docker/docker-git/docker/create.sh b/docker/docker-git/docker/create.sh
@@ -30,7 +30,8 @@ for dir in "${reposdir}/"*/; do
cd "${stagitdir}/${d}" || continue
# set post-recieve hook, owner and description
- ln -fs "${stagitsrc}/example_post-receive.sh" "${reposdir}/${r}/hooks/post-receive"
+ cp -f "${stagitsrc}/example_post-receive.sh" "${reposdir}/${r}/hooks/post-receive"
+ chmod +x "${reposdir}/${r}/hooks/post-receive"
if [ ! -f "${reposdir}/${r}/owner" ]; then echo "in0rdr" > "${reposdir}/${r}/owner"; fi
if [ ! -f "${reposdir}/${r}/description" ]; then echo "No description." > "${reposdir}/${r}/description"; fi
if [ ! -f "${reposdir}/${r}/url" ]; then echo "https://git.in0rdr.ch/${r}" > "${reposdir}/${r}/url"; fi
diff --git a/docker/docker-git/docker/example_post-receive.sh b/docker/docker-git/docker/example_post-receive.sh