As that's not documented (or as it may be but people didn't read it, at least I couldn't find it), I believe we can avoid a number of people to run into trouble if we check the startup/user environment we're in before proceeding.
According to @BClark09:
This happens because the environment variables that specify where each folder is aren't set yet.
We can override/replace these scripts in the package to correct this.
See https://community.openhab.org/t/oh2-3-fails-to-start/52064/3
As that's not documented (or as it may be but people didn't read it, at least I couldn't find it), I believe we can avoid a number of people to run into trouble if we check the startup/user environment we're in before proceeding.
According to @BClark09: This happens because the environment variables that specify where each folder is aren't set yet. We can override/replace these scripts in the package to correct this.