From a0fc105a141b3405207b960150d97c4fab16f564 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 12 Apr 2017 15:08:47 -0400 Subject: [PATCH] opensrf gets ~/.bash_profile for noninteractive Signed-off-by: Bill Erickson --- opensrf/setup.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/opensrf/setup.yml b/opensrf/setup.yml index a86cedeae..94288b90e 100644 --- a/opensrf/setup.yml +++ b/opensrf/setup.yml @@ -7,14 +7,20 @@ user: name: opensrf shell: /bin/bash +# Environment changes added to ~/.bash_profile to ensure they are +# loaded regardless of whether opensrf is used interactively. - lineinfile: - dest: /home/opensrf/.bashrc + dest: /home/opensrf/.bash_profile + create: yes + owner: opensrf + group: opensrf + mode: 0644 regexp: '^export PATH=' - line: 'export PATH={{eg_install_path}}/bin:$PATH' + line: 'export PATH="{{eg_install_path}}/bin:$PATH"' - lineinfile: - dest: /home/opensrf/.bashrc + dest: /home/opensrf/.bash_profile regexp: '^export LD_LIBRARY_PATH=' - line: 'export LD_LIBRARY_PATH={{eg_install_path}}/lib:/usr/local/lib:/usr/local/lib/dbd:$LD_LIBRARY_PATH' + line: 'export LD_LIBRARY_PATH="{{eg_install_path}}/lib:/usr/local/lib:/usr/local/lib/dbd:$LD_LIBRARY_PATH"' - lineinfile: dest: /etc/hosts regexp: '^127.0.1.2' -- 2.11.0