From 91e4aaca1d9b3351f4f33caf12bc8fb5d3f3b4c7 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Wed, 15 Nov 2023 13:59:22 +0100 Subject: [PATCH] add checks for settings file --- start.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/start.sh b/start.sh index 150f2ce..6d5847d 100644 --- a/start.sh +++ b/start.sh @@ -19,12 +19,19 @@ if [ -f ~/NexusDashboard/app/luclient/res/brickdb.zip ]; then rm ~/NexusDashboard/app/luclient/res/brickdb.zip echo "brickdb.zip unpacked and removed" fi +echo "check cdclient.sqlite" # rename ~/NexusDashboard/app/luclient/res/CDServer.sqlite if [ -f ~/NexusDashboard/app/luclient/res/CDServer.sqlite ]; then echo "moving CDServer.sqlite to cdclient.sqlite" mv ~/NexusDashboard/app/luclient/res/CDServer.sqlite ~/NexusDashboard/app/luclient/res/cdclient.sqlite fi [ ! -f ~/NexusDashboard/app/luclient/res/cdclient.sqlite ] && echo "cdclient.sqlite not found" && exit 1 +echo "check settings_example.py" +if [ ! -f ~/NexusDashboard/app/settings.py ]; then + echo "settings.py not found. Copy settings_example.py to settings.py" + cp ~/NexusDashboard/app/settings_example.py ~/NexusDashboard/app/settings.py +fi +[ -f ~/NexusDashboard/app/settings_example.py ] && rm ~/NexusDashboard/app/settings_example.py && echo "settings_example.py removed" echo "pre-check done" cd ~/NexusDashboard echo "run database migration"