File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,13 @@ echo "*** Welcome to the Allsky Website ***"
12
12
echo " *************************************"
13
13
echo
14
14
15
+ if [ ! -d " ${PORTAL_DIR} " ]; then
16
+ echo -e " ${RED} * The website requires the WebUI to be installed.${NC} "
17
+ echo " Please install it by executing: sudo gui/install.sh"
18
+ echo
19
+ exit 1
20
+ fi
21
+
15
22
echo -e " ${GREEN} * Fetching website files into ${WEBSITE_DIR}${NC} "
16
23
git clone https://github.com/thomasjacquin/allsky-website.git " ${WEBSITE_DIR} "
17
24
echo
@@ -31,16 +38,17 @@ if [ ! -d startrails/thumbnails -o ! -d keograms/thumbnails -o ! -d videos/thumb
31
38
echo
32
39
fi
33
40
34
- # xxxx Should set some variables in config.js based on settings_*.json and config.sh.
35
- # In the meantime, let the user know to do it.
36
41
echo
37
42
echo -e " ${GREEN} * Installation complete${NC} "
38
43
echo
39
44
45
+ # xxxx TODO: Set some variables in config.js based on settings_*.json and config.sh.
46
+ # In the meantime, let the user know to do it.
40
47
echo " +++++++++++++++++++++++++++++++++++++"
41
48
echo " Before using the website you need to:"
42
49
echo " * Edit '${WEBSITE_DIR} /config.js'"
43
- if [ " x${POST_END_OF_NIGHT_DATA} " != " xtrue" ]; then
50
+ echo " * Look at, and possibly edit '${WEBSITE_DIR} /virtualsky.json'"
51
+ if [ " ${POST_END_OF_NIGHT_DATA} " != " true" ]; then
44
52
echo " * Set 'POST_END_OF_NIGHT_DATA=true' in ${ALLSKY_CONFIG} /config.sh"
45
53
fi
46
54
echo
You can’t perform that action at this time.
0 commit comments