Giter Club home page Giter Club logo

filewave-macos-updates's Introduction

Filewave-macOS-Updates

The purpose of this project is to provide a different method for installing macOS updates via Filewave. This method will perform a scripted install using the softwareupdates command, instead of using Filewave's built-in method of deploying updates. This method is largely adapted from https://github.com/bp88/JSS-Scripts/blob/master/AppleSoftwareUpdate.sh

Why?

I haven't had great luck with Filewave's built-in OS updater for macOS. Works fine for Windows, but with changes Apple has made for update catalogs, bridgeOS updates, various delta's, etc, it seems harder and harder for Filewave to handle this. LANrev was having similar problems before its demise.

The other reason is to have a set-it-and-forget-it model. If you want your fleet to install updates without needing your approval, this model works great. Combine it with a software update delay profile if you don't want updates installed as soon as they come out.

Setup

The original script, intended for Jamf Pro, has been broken out to 3 scripts. Create a fileset with an empty payload. Add these three scripts to the appropriate script section.

Filewave Script window

Set the Properties for the fileset to only work with the macOS platform. As well as check the "Requires Reboot" checkbox.

fw_softwareupdates_verification.sh

This script will determine if updates are required. As well as check that other conditions are met, such as confirming the device is connected to power, filevault is not in the process of encrypting, and there are no power assertions (presentation or web conferencing apps)

fw_softwareupdate_activation.sh

This activation script is what performs the installation of the updates that were previously updated.

Contributing

I would love to get community feedback on this. Feel free to file an issue if you have a problem or submit a PR if you have improvements!

filewave-macos-updates's People

Contributors

patgmac avatar

Stargazers

 avatar Nate avatar  avatar

Watchers

 avatar BAM avatar  avatar

filewave-macos-updates's Issues

softwareupdate -l is not writing to "$ListOfSoftwareUpdates"

In fw_softwareupdates_verification.sh, the command

/usr/sbin/softwareupdate -l 2>&1 > "$ListOfSoftwareUpdates"

does not write to "$ListOfSoftwareUpdates" (it does not list the software updates).

It may be due to an issue that spellcheck points out:
To redirect stdout+stderr, 2>&1 must be last (or use '{ cmd > file; } 2>&1' to clarify).
More details on the issue is found at https://github.com/koalaman/shellcheck/wiki/SC2069

Possible workaround: remove 2>&1 (i.e. /usr/sbin/softwareupdate -l > "$ListOfSoftwareUpdates" )

Deploying in Filewave

I'm a little confused how the described setup in the README is meant to work in Filewave.

If the actual installation step takes place in the fw_softwareupdate_activation.sh script, and set as an activation script in the fileset, won't that only ever run a single time when the fileset is first associated?

As far as I know, verification scripts are the only ones that run on a regular basis but fw_softwareupdates_verification.sh only downloads the updates rather than installing them.

So just curios if I'm misunderstanding something here or if a fileset with these scripts is designed to be re-associated on a regular basis so that fw_softwareupdate_activation.sh will run again.

use --include-config-data flag

in preflight script, I offer the suggestion to use softwareupdate --download --all --include-config-data command in order to download MRT and XProtect data files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.