-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathupdateViz.sh
More file actions
executable file
·34 lines (26 loc) · 1.02 KB
/
updateViz.sh
File metadata and controls
executable file
·34 lines (26 loc) · 1.02 KB
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
#!/bin/bash
rm -rf viz/assets
rm -rf viz/images
rm viz/index.html
#latest snapshot
wget --no-check-certificate https://nightly.link/smart-data-lake/sdl-visualization/workflows/build/develop/sdl-visualizer.zip
#latest special snapshot
#wget --no-check-certificate https://nightly.link/smart-data-lake/sdl-visualization/actions/runs/8004975572/sdl-visualizer.zip
#latest release
#wget --no-check-certificate https://github.com/smart-data-lake/sdl-visualization/releases/latest/download/sdl-visualizer.zi
# save existing configuration
if [ -f viz/manifest.json ]; then
mv viz/manifest.json viz/manifest.json.save
mv viz/lighttpd.conf viz/lighttpd.conf.save
fi
unzip -uo sdl-visualizer.zip -d viz
rm sdl-visualizer.zip
# restore previous configuration
if [ -f viz/manifest.json.save ]; then
mv viz/manifest.json viz/manifest.json.org
mv viz/manifest.json.save viz/manifest.json
mv viz/lighttpd.conf viz/lighttpd.conf.org
mv viz/lighttpd.conf.save viz/lighttpd.conf
fi
# prepare index for state and config
chmod +x viz/build_index.sh