enroll.sh/upload.sh
Miguel Jacq 7f8e7f0c99
Some checks failed
CI / test (push) Failing after 1m37s
Hugo site now
2026-01-06 09:08:28 +11:00

15 lines
377 B
Bash
Executable file

#!/bin/bash
set -eou pipefail
SRC="src"
DEST="/opt/www/enroll.sh"
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends hugo
cp -a ~/git/enroll/enroll/schema/state.schema.json src/static/schema/state.schema.json
cd "${SRC}" && hugo
cd ../
rsync -aHPvz ${SRC}/public/ root@lupin.mig5.net:${DEST}/
ssh root@lupin.mig5.net "chown -R web:web ${DEST}"