server_config/website/_install.sh

18 lines
384 B
Bash
Raw Normal View History

# Install deno
curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/usr/local sh
# Create group and user
groupadd --system deno
useradd --system \
--gid deno
--create-home \
--home-dir /var/lib/deno \
--shell /usr/sbin/nologin \
--comment "Deno js engine" \
deno
# Clone website repo
mkdir -p /srv/www
git clone https://git.cohabit.fr/cohabit/website.git /srv/www