Skip to content

Commit d16076e

Browse files
authored
feat: add option to use SONAR_DATA_PATH instead of single paths in the config (#23)
1 parent eacc498 commit d16076e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/install.sh

+6
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,12 @@ main() {
264264
import_config
265265
fi
266266

267+
## Set default paths from DATA_PATH (this is used in MainsailOS)
268+
if [[ -n "${SONAR_DATA_PATH}" ]]; then
269+
SONAR_CONFIG_PATH="${SONAR_DATA_PATH}/config"
270+
SONAR_LOG_PATH="${SONAR_DATA_PATH}/logs"
271+
fi
272+
267273
## Make sure folders exist
268274
create_filestructure
269275

0 commit comments

Comments
 (0)