Feat: install.sh now honors OC_BASE_DIR

This commit is contained in:
Jürgen Weigert
2025-04-05 15:13:05 +02:00
parent 2174942a93
commit 6fc05f592b
2 changed files with 10 additions and 2 deletions

View File

@@ -26,6 +26,13 @@ This script should **NOT** be run as user root.
Set the environment variable `OC_VERSION` to the version you want
to download. If not set, there is a reasonable default.
## Data Location
Set the environment variable `OC_BASE_DIR` to a directory where the
`data` and `config` subdirectories shall be located. Per default,
both configuration and storage data are within a sandbox subdirectory
in the current working directory.
# Example
Call

View File

@@ -71,8 +71,9 @@ chmod 755 ${dlfile}
mkdir data config
export OC_CONFIG_DIR="$(pwd)/config"
export OC_BASE_DATA_PATH="$(pwd)/data"
basedir="${OC_BASE_DIR:-$(pwd)}"
export OC_CONFIG_DIR="$basedir/config"
export OC_BASE_DATA_PATH="$basedir/data"
# It is bound to localhost for now to deal with non existing routes
# to certain host names for example in WSL