Posted on 08-22-2012 11:43 AM
How do i go about changing it from /users/admin/.cups is there a variable I can put in that would change "admin" to current user?
Solved! Go to Solution.
Posted on 08-22-2012 11:59 AM
There's no need to worry about that. Whatever account gets captured in a Composer snapshot gets used as a wildcard if you use the Fill Existing Users (FEU) or Fill User Template (FUT) options when deploying the package. The one caveat is that you must use a DMG format for this to happen or it will in fact drop the file into the admin folder or whatever path is shown in the package.
If you have a package you'd rather deploy in .pkg format, try splitting these up. Deploy the software as a .pkg and have a separate "settings" DMG file with just the user specific files that rides along with it in the same policy. We do this all the time and it works just fine.
Lastly, you could script something that will copy the file(s) into the current user's folder or other home directories and put it all in a postflight or postinstall script, and then deploy it all in a single .pkg format.
Posted on 08-22-2012 11:59 AM
There's no need to worry about that. Whatever account gets captured in a Composer snapshot gets used as a wildcard if you use the Fill Existing Users (FEU) or Fill User Template (FUT) options when deploying the package. The one caveat is that you must use a DMG format for this to happen or it will in fact drop the file into the admin folder or whatever path is shown in the package.
If you have a package you'd rather deploy in .pkg format, try splitting these up. Deploy the software as a .pkg and have a separate "settings" DMG file with just the user specific files that rides along with it in the same policy. We do this all the time and it works just fine.
Lastly, you could script something that will copy the file(s) into the current user's folder or other home directories and put it all in a postflight or postinstall script, and then deploy it all in a single .pkg format.
Posted on 08-22-2012 12:14 PM
Script and variable to current user would work.
#!/bin/sh
user="stat -f%Su /dev/console"
Posted on 11-05-2015 06:02 AM
If I wanted to do this for the current user with a .pkg file do I just add a post install sh script with what Matt posted?