Hidden files in /var/db/receipts deleted after upgrade

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
12-15-2017
06:02 AM
- last edited
a month ago
by
kh-richa_mig
Just looking at finally upgrading our devices from El Cap to Sierra (Casper 9.101).
After upgrading successfully, some of our "flag" files that we placed in the /var/db/receipts folder have gone.
e.g. /var/db/receipts/.owned
We use this flag to put the Mac into a specific dynamic group.
Any idea why this is deleted after an upgrade?
- Best way to retain it?
- Maybe better place to be adding these type of "flags"?
- Labels:
-
Jamf Pro

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 12-15-2017 06:38 AM
I would put it in /var/db instead of /var/db/receipts, we put marker files in /var/db and they're always left in place after OS upgrades.
It is probably being deleted because it's not a valid receipt.
I hope that helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 12-18-2017 04:37 AM
Thanks. Works as intended in that area.
