From 67f80dca1886ce8c887bb41bf122cda9bc16a894 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Thu, 11 Jul 2024 12:44:33 +0200 Subject: [PATCH] fix(portfolio_server): remove old files before cloning sources --- portfolio_server/_install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/portfolio_server/_install.sh b/portfolio_server/_install.sh index cd8ce1a..7360a43 100644 --- a/portfolio_server/_install.sh +++ b/portfolio_server/_install.sh @@ -17,7 +17,10 @@ else --comment "Deno js engine" \ deno fi - -# Clone website repo + +# Create fs tree is missing mkdir -p /srv/portfolio +# Remove old files if exists +rm -rf /srv/portfolio/* +# Clone website repo git clone -b main --depth 1 https://git.cohabit.fr/cohabit/portfolio_server.git /srv/portfolio