Files
nocodb/docker-compose/setup-script/tests/configure/setup.sh
2024-05-02 15:16:14 +00:00

23 lines
350 B
Bash
Executable File

#!/bin/bash
WORKING_DIR=$(dirname "$0")
if [ -z "$NOCO_HOME" ]; then
NOCO_HOME="${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'
cd "$NOCO_HOME" || exit
docker compose down
fi