forked from gigascience/gigadb-cogini-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sh
31 lines (30 loc) · 967 Bytes
/
init.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
#!/bin/bash
FILE=./assets
ZIPFILE=<link to zipfile>
if [[ -a $FILE ]];
then
echo "assets folder exists!"
else
echo "Assets folder does not exist. Downloading zip file..."
wget --no-check-certificate -O ./gigadb-cogini.zip $ZIPFILE
unzip -q ./gigadb-cogini.zip
cd gigadb-cogini
pwd
ls -l
echo "Moving files..."
mv assets ..
mv images ..
mv protected/config/local.php ../protected/config
mv protected/config/data ../protected/config
mv protected/data/data_fresh.sql ../protected/data
mv protected/runtime ../protected
mv protected/scripts/data/dbchanges.txt ../protected/scripts/data
mv protected/scripts/data/lastIndexer.txt ../protected/scripts/data
mv protected/scripts/data/lastdataset.txt ../protected/scripts/data
mv protected/scripts/set_env.sh ../protected/scripts/set_env.sh
cd ..
echo "Cleaning up files..."
rm -fr gigadb-cogini
rm gigadb-cogini.zip
echo "Done!"
fi