cc-backend/startDemo.sh

18 lines
515 B
Bash
Raw Normal View History

2022-03-16 10:09:28 +01:00
#!/bin/sh
if [ -d './var' ]; then
echo 'Directory ./var already exists! Skipping initialization.'
2023-06-27 14:30:09 +02:00
./cc-backend -server -dev
else
2023-02-25 08:29:08 +01:00
make
2023-04-12 10:10:07 +02:00
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive-demo.tar
tar xf job-archive-demo.tar
rm ./job-archive-demo.tar
2022-03-16 10:09:28 +01:00
cp ./configs/env-template.txt .env
2023-06-13 14:35:57 +02:00
cp ./configs/config-demo.json config.json
2022-03-16 10:09:28 +01:00
2023-06-27 14:30:09 +02:00
./cc-backend -migrate-db
./cc-backend -server -dev -init-db -add-user demo:admin:demo
fi