Posted on 03-27-2020 07:38 PM
In the JAMF scripts section one of the scripts i used in the past has a yellow warning that says 'Script contains invalid reference to /usr/sbin'
/usr/sbin/jamf flushPolicyHistory
what should i change it to say?
i removed the /usr/sbin/ but it still has the warning.
Posted on 03-27-2020 07:40 PM
Change it to /usr/local/bin/jamf
But if I recall, you might need to clear the warning itself manually, even after making the change. I don't think it clears by itself.
Posted on 03-27-2020 07:45 PM
@mm2270 i made the change. how do i clear the warning?
i thought it would clear on it's own afterwards or after a little time passes.
Posted on 03-27-2020 07:48 PM
It's been so long since I saw any of those warnings that I don't exactly remember, but I thought there was some kind of "x" button on them or something like that. I would see if there's anything that looks like it might clear the message and try that if you find any.
Outside of that, you can try logging out of Jamf Pro and back in to see if they disappear. Maybe that's what was needed.
Posted on 03-27-2020 07:51 PM
@mm2270 i also have the warning on one other script, here is the line
/usr/local/jamf/bin/jamf policy -id 115
so im assuming change it to ??
/usr/local/bin/jamf policy -id 115