bp88 / JSS-Scripts

Random scripts for use in the Jamf Pro
188 stars 61 forks source link

OSUpdateNotifier: record wrong key in plist ForceUpdateStartTimeInEpoch #38

Open phu-ngo opened 2 years ago

phu-ngo commented 2 years ago

osupdatenotifier.sh line 975 set wrong key name (ForceUpdateStartEpochTime need change to ForceUpdateStartTimeInEpoch) old:

        # Record the start time for forced update via GUI the plist 
        setPlistValue "$BundleID" "ForceUpdateStartEpochTime" "integer" "$ForceUpdateStartEpochTime" "$DeprecationPlist"

fix:

        # Record the start time for forced update via GUI the plist 
        setPlistValue "$BundleID" "ForceUpdateStartTimeInEpoch" "integer" "$ForceUpdateStartTimeInEpoch" "$DeprecationPlist"