Re: [Cooker] un-source /root/.bashrc ?
On Fri, Aug 16, 2002 at 04:19:15PM -0400, Oden Eriksson wrote: Great! Then #!/bin/bash --norc should be in the apache2 init script, and maybe use a .bashrc in the apache users home dir instead. Thanks. I'd use #!/bin/sh unless you're using something that bash doesn't do in sh mode. Which for a startup script seems unlikely to me... -- Ben Reser [EMAIL PROTECTED] http://ben.reser.org If your love has no hope of being welcomed do not voice it; for if it be silent it can endure, a guarded flame, within you. - The Wisdom of the Sands
Re: [Cooker] un-source /root/.bashrc ?
On Tue, Aug 13, 2002 at 03:01:06PM -0400, Oden Eriksson wrote: Hi. Since all SysV scripts are now using bash they all source /root/.bashrc and use that ENV. How is the best practice to prevent this? rm -f /root/.bashrc ? Use #!/bin/sh not #!/bin/bash or #!/bin/bash --norc Search through the bash man page it explains what files get sourced under what circumstances. -- Ben Reser [EMAIL PROTECTED] http://ben.reser.org If your love has no hope of being welcomed do not voice it; for if it be silent it can endure, a guarded flame, within you. - The Wisdom of the Sands