From 271ab2b3b6e31a66dde2b228028ee2133c111e2c Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 29 Jan 2025 09:39:25 +0530 Subject: [PATCH] fix(upstall): use absolute paths --- docker-compose/1_Auto_Upstall/noco.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docker-compose/1_Auto_Upstall/noco.sh b/docker-compose/1_Auto_Upstall/noco.sh index d7b8d088cf..a6c2cd6516 100755 --- a/docker-compose/1_Auto_Upstall/noco.sh +++ b/docker-compose/1_Auto_Upstall/noco.sh @@ -6,9 +6,9 @@ fi set -e # Constants -NOCO_HOME="./nocodb" +NOCO_HOME="$(pwd)/nocodb" REQUIRED_PORTS=(80 443) -state_file="noco.state" +state_file="$NOCO_HOME/noco.state" state_dlim="|" # Color definitions @@ -561,6 +561,11 @@ check_existing_installation() { mkdir -p "$NOCO_HOME" cd "$NOCO_HOME" || exit 1 + # add more state handling in the future, if we want that + # so we do not have carry arround backward compatibility ifs + kvstore_get getval state_version > /dev/null || kvstore_set state_version 1 + + # Check if nocodb is already installed if [ "$NOCO_FOUND" = true ]; then echo "NocoDB is already installed. And running." @@ -1295,10 +1300,6 @@ monitoring_service() { main() { CONFIG_DOCKER_COMMAND=$([ "$(check_for_docker_sudo)" = "y" ] && echo "sudo docker" || echo "docker") - # add more state handling in the future, if we want that - # so we do not have carry arround backward compatibility ifs - kvstore_get getval state_version > /dev/null || kvstore_set state_version 1 - check_existing_installation check_system_requirements get_user_inputs