mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-04-03 18:55:55 +02:00
chore: Update build script to create necessary directories and files
This commit is contained in:
parent
63797ac849
commit
80b5017308
10
build.sh
10
build.sh
@ -1,7 +1,15 @@
|
||||
#!/bin/bash
|
||||
cp ./configs/env-template.txt .env
|
||||
cp ./configs/config-demo.json config.json
|
||||
|
||||
if [ ! -d ./var ]; then
|
||||
mkdir -p ./var
|
||||
fi
|
||||
if [ ! -d ./var/job-archive ]; then
|
||||
mkdir -p ./var/job-archive
|
||||
fi
|
||||
if [ ! -f ./var/job-archive/version.txt ]; then
|
||||
cat 1 > ./var/job-archive/version.txt
|
||||
fi
|
||||
TARGET="./cc-backend"
|
||||
VAR="./var"
|
||||
CFG="config.json .env"
|
||||
|
Loading…
x
Reference in New Issue
Block a user