mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-01 23:48:33 +00:00
fix(upstall): use absolute paths
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user