Posted on 05-10-2013 02:24 AM
Hi All
Just looking for some guidance on the above. I have an application that I have packaged but it requires the users $PATH variable to be edited. Just wondering how to go about doing this. I don't want to export my packaging machines .profile and add it to the package for the users machines, as they might have variables written from other installations and I don't want to overwrite them.
So want to see if there is anything in the JSS that can possibly push out variables? We use DMG's in our environment so cannot run a post install script to add it. The users also want to use the application through command line from Terminal so I cannot even write a launcher.app to write the variable then launch the application.
So, does anyone have any ideas on how to handle user variables?
Thanks, Jim
Solved! Go to Solution.
Posted on 05-10-2013 03:13 AM
Have a look at /etc/paths.d/, that should be all you need:
ls -l /etc/paths.d/ -rw-r--r-- 1 root wheel 107 7 Feb 22:49 com.apple.server
cat /etc/paths.d/com.apple.server /Applications/Server.app/Contents/ServerRoot/usr/bin /Applications/Server.app/Contents/ServerRoot/usr/sbin
Posted on 05-10-2013 03:13 AM
Have a look at /etc/paths.d/, that should be all you need:
ls -l /etc/paths.d/ -rw-r--r-- 1 root wheel 107 7 Feb 22:49 com.apple.server
cat /etc/paths.d/com.apple.server /Applications/Server.app/Contents/ServerRoot/usr/bin /Applications/Server.app/Contents/ServerRoot/usr/sbin
Posted on 05-10-2013 03:51 AM
Thanks a million, thats helped.
Posted on 05-10-2013 06:56 AM
What about:
$ cat /etc/paths
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
Don