mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 05:19:05 +01:00
Fix errors. Add check if ./var already exists.
This commit is contained in:
parent
71d85bbaad
commit
7487d85856
@ -1,11 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -d './var' ]; then
|
||||||
|
echo 'Directory ./var already exists! Skipping initialization.'
|
||||||
|
./cc-backend --server --dev
|
||||||
|
else
|
||||||
mkdir ./var
|
mkdir ./var
|
||||||
cd ./var
|
cd ./var
|
||||||
|
|
||||||
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive-dev.tar.xz
|
wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive-dev.tar.xz
|
||||||
tar xJf job-archive.tar.xz
|
tar xJf job-archive-dev.tar.xz
|
||||||
rm ./job-archive.tar.xz
|
rm ./job-archive-dev.tar.xz
|
||||||
|
|
||||||
touch ./job.db
|
touch ./job.db
|
||||||
cd ../web/frontend
|
cd ../web/frontend
|
||||||
@ -18,3 +22,4 @@ cp ./docs/config.json config.json
|
|||||||
go build ./cmd/cc-backend
|
go build ./cmd/cc-backend
|
||||||
|
|
||||||
./cc-backend --server --dev --init-db --add-user demo:admin:AdminDev
|
./cc-backend --server --dev --init-db --add-user demo:admin:AdminDev
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user