-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_gid_arm.sh
executable file
·37 lines (29 loc) · 1.16 KB
/
install_gid_arm.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/bash
gid_path="$1"
if [ "$gid_path" == "" ] ; then
gid_path="/gid"
fi
echo gid_path="$gid_path"
mkdir "$gid_path"
cd "$gid_path"
# wget https://web.cimne.upc.edu/users/miguel/data/gid/gid14.0.2-linux-x64.tar.gz
# tar -zxvf gid14.0.2-linux-x64.tar.gz
# rm gid14.0.2-linux-x64.tar.gz
# cd gid14.0.2-x64
VERSION=17.1.2d
TARFILENAME=gid${VERSION}-linux-arm-x64.tar.xz
# # TARFILENAME is in this same directory
# if [ ! -f ${TARFILENAME} ] ; then
# echo "please copy ${TARFILENAME} in this same folder"
# fi
# wget --progress=dot:mega https://www.gidhome.com/archive/GiD_Developer_Versions/Linux/amd64/${TARFILENAME}
# www.gidhome.com/archive has been moved (http code 302)
# adding '-L' so that curl follows the redirection
curl -L https://www.gidhome.com/archive/GiD_Developer_Versions/Linux/arm_aarch64/${TARFILENAME} -o ${TARFILENAME}
# curl -L https://www.gidhome.com/archive/GiD_Official_Versions/Linux/arm_aarch64/${TARFILENAME} -o ${TARFILENAME}
tar -Jxvf ${TARFILENAME}
rm ${TARFILENAME}
# rename folder to a 'common' name known by surpervisord.conf
mv gid${VERSION}-x64/* .
# Network licence
echo "# Floating.licence.server.ip" >> scripts/TemporalVariables