From: Bill Erickson Date: Wed, 12 Apr 2017 19:08:47 +0000 (-0400) Subject: opensrf gets ~/.bash_profile for noninteractive X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a0fc105a141b3405207b960150d97c4fab16f564;p=working%2Frandom.git opensrf gets ~/.bash_profile for noninteractive Signed-off-by: Bill Erickson --- 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'