mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-27 05:05:06 +00:00
fix: path error
This commit is contained in:
12
docker-compose/setup-script/tests/configure/setup.sh
Normal file → Executable file
12
docker-compose/setup-script/tests/configure/setup.sh
Normal file → Executable file
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
WORKING_DIR=$(dirname "$0")
|
||||
|
||||
if [ -z "$NOCO_HOME" ]; then
|
||||
NOCO_HOME="${HOME}/.nocodb"
|
||||
fi
|
||||
@@ -9,10 +11,12 @@ if [ -d "$NOCO_HOME" ]; then
|
||||
docker compose down
|
||||
fi
|
||||
|
||||
cd /tmp || exit
|
||||
cd "$WORKING_DIR" || exit
|
||||
rm -rf "$NOCO_HOME"
|
||||
|
||||
../noco.sh <<< $'\n\nN\n'
|
||||
if [ "$1" = "setup" ]; then
|
||||
../../noco.sh <<< $'\n\nN\n'
|
||||
|
||||
cd "$NOCO_HOME" || exit
|
||||
docker compose down
|
||||
cd "$NOCO_HOME" || exit
|
||||
docker compose down
|
||||
fi
|
||||
4
docker-compose/setup-script/tests/configure/start.bats
Normal file → Executable file
4
docker-compose/setup-script/tests/configure/start.bats
Normal file → Executable file
@@ -7,12 +7,12 @@ WORKING_DIR="$(pwd)"
|
||||
|
||||
setup() {
|
||||
cd "${WORKING_DIR}" || exit 1
|
||||
setup.sh
|
||||
./setup.sh "setup"
|
||||
}
|
||||
|
||||
teardown() {
|
||||
cd "${WORKING_DIR}" || exit 1
|
||||
setup.sh
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
@test "Check Redis, WatchTower and NocoDB are up" {
|
||||
|
||||
Reference in New Issue
Block a user