From: Bill Erickson Date: Mon, 5 Jun 2017 14:47:52 +0000 (-0400) Subject: ENV vars go in opensrf .bashrc for consistency; comments X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c2ef6ea409b7178f1c0bc3685d2c3bcea281601d;p=working%2Frandom.git ENV vars go in opensrf .bashrc for consistency; comments Signed-off-by: Bill Erickson --- diff --git a/opensrf/setup.yml b/opensrf/setup.yml index 19ada33a4..c17678950 100644 --- a/opensrf/setup.yml +++ b/opensrf/setup.yml @@ -9,13 +9,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. +# Add environment changes to ~/.bashrc for consistency with OpenSRF/Evergreen +# installtion docs and crontab examples. Beware that ~/.bashrc is only +# processed in certain circumstances. This is why most EG CRONTAB examples +# start with ". ~/.bashrc". +# sudo -u opensrf => ~/.bashrc +# sudo su opensrf => ~/.bashrc +# sudo -i -u opensrf => ~/.bash_profile +# sudo su -l opensrf => ~/.bash_profile +# crontab user => ~/.bash_profile - name: Check export PATH for opensrf user profile become: true become_user: opensrf lineinfile: - dest: /home/opensrf/.bash_profile + dest: /home/opensrf/.bashrc create: yes owner: opensrf group: opensrf @@ -26,7 +33,7 @@ become: true become_user: opensrf lineinfile: - dest: /home/opensrf/.bash_profile + dest: /home/opensrf/.bashrc regexp: '^export LD_LIBRARY_PATH=' line: 'export LD_LIBRARY_PATH="{{eg_install_path}}/lib:/usr/local/lib:/usr/local/lib/dbd:$LD_LIBRARY_PATH"' - name: Add public/private jabber hosts to /etc/hosts