- From: Amandeep <
>
- To: "
" <
>
- Subject: [chef] Re: Re: Not able to execute .profile in ubuntu through chef recipe
- Date: Tue, 16 Dec 2014 16:22:17 +0530
Thanks Morgan. I am writing my own cookbook currently where i am setting java home and path variable in .profile as well as /etc/profile file so that when these files are executed then automatically env variables will be set. Regards Amandeep Singh
Sent from my iPhone On 16-Dec-2014, at 3:40 pm, Morgan Blackthorne <
">
> wrote: You don't execute .profile. If you're in a shell and need to reload the file you can do ", ~/.profile" but that is a shell built-in, it's not a command. Typically commands without a TTY won't load the .profile/etc files, unless the command is a shell script or you explicitly call the shell to run the command.
If you're having trouble running scripts via Chef, you'll need to paste at least the error that occurs for us to help.
|
Archive powered by MHonArc 2.6.16.