jpom server load env
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.' > $FILE_NAME
-source /etc/profile
+# loading env
+if [ -f /etc/profile ]; then
+ . /etc/profile
+fi
+if [ -f /etc/bashrc ]; then
+ . /etc/bashrc
+fi
+if [ -f ~/.bashrc ]; then
+ . ~/.bashrc
+fi
+if [ -f ~/.bash_profile ]; then
+ . ~/.bash_profile
+fi
RUN_PATH="JPOM_RUN_PATH"
