From 2b35158cd6342e2d1bbd9e431f9d6f5098147963 Mon Sep 17 00:00:00 2001 From: Chris Yocum Date: Mon, 6 Apr 2020 07:16:16 -0400 Subject: [PATCH] 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. --- root/etc/cont-init.d/60-diskover-web-config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/etc/cont-init.d/60-diskover-web-config b/root/etc/cont-init.d/60-diskover-web-config index 18ebca2..8ab1ed2 100644 --- a/root/etc/cont-init.d/60-diskover-web-config +++ b/root/etc/cont-init.d/60-diskover-web-config @@ -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