mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 20:16:49 +00:00
update : refactor auto-upstall and installation methods
This commit is contained in:
17
docker-compose/1_Auto_Upstall/tests/configure/setup.sh
Executable file
17
docker-compose/1_Auto_Upstall/tests/configure/setup.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$NOCO_HOME" ]; then
|
||||
NOCO_HOME="./nocodb"
|
||||
fi
|
||||
|
||||
if [ -d "$NOCO_HOME" ]; then
|
||||
cd "$NOCO_HOME" || exit
|
||||
docker compose down
|
||||
fi
|
||||
|
||||
cd "$WORKING_DIR" || exit
|
||||
rm -rf "$NOCO_HOME"
|
||||
|
||||
if [ "$1" = "setup" ]; then
|
||||
../noco.sh <<< $'\n\nN\n'
|
||||
fi
|
||||
Reference in New Issue
Block a user