Web search broke due to missing file(s)

Need to make sure /config/customtags.txt and /config/smartsearches.txt files exist or it can break the web search. This ensures that the files exist.
This commit is contained in:
Chris Yocum 2020-04-06 07:16:16 -04:00
parent 0495177c3c
commit 2b35158cd6

View File

@ -31,7 +31,7 @@ if [ ! -f "/app/diskover-web/public/index.php" ]; then
ln -s dashboard.php index.php
fi
if [ ! -f "/config/smartsearches.txt.sample" ]; then
if [ ! -f "/config/smartsearches.txt" ]; then
cp /app/diskover-web/public/smartsearches.txt.sample /config/smartsearches.txt
fi
@ -39,8 +39,8 @@ if [ ! -f "/app/diskover-web/public/smartsearches.txt" ]; then
ln -s /config/smartsearches.txt /app/diskover-web/public/smartsearches.txt
fi
if [ ! -f "/config/customtags.txt.sample" ]; then
cp /app/diskover-web/public/customtags.txt.sample /config/customtags.txt.sample
if [ ! -f "/config/customtags.txt" ]; then
cp /app/diskover-web/public/customtags.txt.sample /config/customtags.txt
fi
if [ ! -f "/app/diskover-web/public/customtags.txt" ]; then