opensrf gets ~/.bash_profile for noninteractive
authorBill Erickson <berickxx@gmail.com>
Wed, 12 Apr 2017 19:08:47 +0000 (15:08 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 12 Apr 2017 19:08:47 +0000 (15:08 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
opensrf/setup.yml

index a86cede..94288b9 100644 (file)
@@ -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'