From cf998be24c8a7cf052e1123c98bd138e53ccf874 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Thu, 11 Jul 2024 14:28:23 +0200 Subject: [PATCH] fix(website/install): remove old files before `git clone` --- website/_install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/website/_install.sh b/website/_install.sh index 02a473c..f2be832 100644 --- a/website/_install.sh +++ b/website/_install.sh @@ -17,7 +17,10 @@ else --comment "Deno js engine" \ deno fi - -# Clone website repo + +# Remove old existing files +rm -rf /srv/www +# Create fs structure mkdir -p /srv/www +# Clone website repo git clone -b main --depth 1 https://git.cohabit.fr/cohabit/website.git /srv/www