Skip to content

Commit 5217e60

Browse files
authored
Check that WebUI is installed
Fixes #571
1 parent 9b89751 commit 5217e60

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

website/install.sh

+11-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ echo "*** Welcome to the Allsky Website ***"
1212
echo "*************************************"
1313
echo
1414

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+
1522
echo -e "${GREEN}* Fetching website files into ${WEBSITE_DIR}${NC}"
1623
git clone https://github.com/thomasjacquin/allsky-website.git "${WEBSITE_DIR}"
1724
echo
@@ -31,16 +38,17 @@ if [ ! -d startrails/thumbnails -o ! -d keograms/thumbnails -o ! -d videos/thumb
3138
echo
3239
fi
3340

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.
3641
echo
3742
echo -e "${GREEN}* Installation complete${NC}"
3843
echo
3944

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.
4047
echo "+++++++++++++++++++++++++++++++++++++"
4148
echo "Before using the website you need to:"
4249
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
4452
echo " * Set 'POST_END_OF_NIGHT_DATA=true' in ${ALLSKY_CONFIG}/config.sh"
4553
fi
4654
echo

0 commit comments

Comments
 (0)