fix(upstall): use absolute paths

This commit is contained in:
sinanmohd
2025-01-29 09:39:25 +05:30
parent ddff9a7dd7
commit 271ab2b3b6

View File

@@ -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