mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-11-10 08:57:25 +01:00
18 lines
514 B
Bash
Executable File
18 lines
514 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -d './var' ]; then
|
|
echo 'Directory ./var already exists! Skipping initialization.'
|
|
./cc-backend --server --dev
|
|
else
|
|
make
|
|
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
|
|
|
|
cp ./configs/env-template.txt .env
|
|
cp ./docs/config.json config.json
|
|
|
|
./cc-backend --migrate-db
|
|
./cc-backend --server --dev --init-db --add-user demo:admin:demo
|
|
fi
|