forked from desihub/qlf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.sh
executable file
·37 lines (30 loc) · 872 Bytes
/
configure.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
echo 'Cloning desispec and desiutil'
git submodule init
git submodule update
cd backend/desimodel
svn export https://desi.lbl.go/svn/code/desimodel/trunk/dat
cd ../..
echo 'Copying backend global-env'
cp backend/global-env.template backend/global-env
echo 'Copying default docker-compose.yml'
cp docker-compose.yml.template docker-compose.yml
echo 'Copying default frontend .env'
cd frontend
cp .env.template .env
cd ..
if [ -z "$1" ]; then
echo 'Checking spectro test data'
if [ "$(ls -A backend/spectro/data)" ]; then
echo "=> spectro test data check OK"
else
export FILE_SPE=spectro.v7.tar.gz
echo 'Downloading spectro test data'
cd backend
wget -c ftp://srvdatatrans/qlfdata/$FILE_SPECTRO
echo 'Unzi...'
tar xvzf $FILE_SPECTRO
rm $FILE_SPECTRO
fi
fi
echo 'To s run ./sh'