fix(website/install): remove old files before git clone

This commit is contained in:
Julien Oculi 2024-07-11 14:28:23 +02:00
parent f8295b6045
commit cf998be24c

View file

@ -17,7 +17,10 @@ else
--comment "Deno js engine" \ --comment "Deno js engine" \
deno deno
fi fi
# Clone website repo # Remove old existing files
rm -rf /srv/www
# Create fs structure
mkdir -p /srv/www mkdir -p /srv/www
# Clone website repo
git clone -b main --depth 1 https://git.cohabit.fr/cohabit/website.git /srv/www git clone -b main --depth 1 https://git.cohabit.fr/cohabit/website.git /srv/www