This commit is contained in:
parent
f3826a7b07
commit
e07273c9be
1 changed files with 5 additions and 5 deletions
10
start.sh
10
start.sh
|
@ -9,18 +9,18 @@ echo "performing pre start check"
|
||||||
[[ -z "${APP_SECRET_KEY}" ]] && echo "APP_SECRET_KEY not set" && exit 1
|
[[ -z "${APP_SECRET_KEY}" ]] && echo "APP_SECRET_KEY not set" && exit 1
|
||||||
[[ -z "${APP_DATABASE_URI}" ]] && echo "APP_DATABASE_URI not set" && exit 1
|
[[ -z "${APP_DATABASE_URI}" ]] && echo "APP_DATABASE_URI not set" && exit 1
|
||||||
# check if client is mounted
|
# check if client is mounted
|
||||||
[ ! -d "~/NexusDashboard/app/luclient" ] && echo "LU client not found" && exit 1
|
[ ! -d ~/NexusDashboard/app/luclient ] && echo "LU client not found" && exit 1
|
||||||
[ ! -d "~/NexusDashboard/app/luclient/res" ] && echo "LU client is missing res folder" && exit 1
|
[ ! -d ~/NexusDashboard/app/luclient/res ] && echo "LU client is missing res folder" && exit 1
|
||||||
[ ! -d "~/NexusDashboard/app/luclient/locale" ] && echo "LU client is missing locale folder" && exit 1
|
[ ! -d ~/NexusDashboard/app/luclient/locale ] && echo "LU client is missing locale folder" && exit 1
|
||||||
# check if brickdb needs to be unzipped
|
# check if brickdb needs to be unzipped
|
||||||
if [ -f "~/NexusDashboard/app/luclient/res/brickdb.zip" ]; then
|
if [ -f ~/NexusDashboard/app/luclient/res/brickdb.zip ]; then
|
||||||
echo "brickdb.zip found"
|
echo "brickdb.zip found"
|
||||||
unzip ~/NexusDashboard/app/luclient/res/brickdb.zip
|
unzip ~/NexusDashboard/app/luclient/res/brickdb.zip
|
||||||
rm ~/NexusDashboard/app/luclient/res/brickdb.zip
|
rm ~/NexusDashboard/app/luclient/res/brickdb.zip
|
||||||
echo "brickdb.zip unpacked and removed"
|
echo "brickdb.zip unpacked and removed"
|
||||||
fi
|
fi
|
||||||
# rename ~/NexusDashboard/app/luclient/res/CDServer.sqlite
|
# rename ~/NexusDashboard/app/luclient/res/CDServer.sqlite
|
||||||
if [ -f "~/NexusDashboard/app/luclient/res/CDServer.sqlite" ]; then
|
if [ -f ~/NexusDashboard/app/luclient/res/CDServer.sqlite ]; then
|
||||||
echo "moving CDServer.sqlite to cdclient.sqlite"
|
echo "moving CDServer.sqlite to cdclient.sqlite"
|
||||||
mv ~/NexusDashboard/app/luclient/res/CDServer.sqlite ~/NexusDashboard/app/luclient/res/cdclient.sqlite
|
mv ~/NexusDashboard/app/luclient/res/CDServer.sqlite ~/NexusDashboard/app/luclient/res/cdclient.sqlite
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue