Closed reuven-cohen closed 9 months ago
Can you post the contents of both policies, and attach a log? Without "--install" patchomator shouldn't do anything beyond detection.
The Install Policy calls the Installomator 10.5 script with variables "patchomator" "NOTIFY=all" "DEBUG=0"
Checking the /usr/local/Installomator folder shows that Patchomator.sh is Version 2023.10.05 - 1.0.8 with a modify date of Oct 16, 2023.
The Installomator.sh files shows version 10.4 although it did download the latest (10.5) but left it as installomator.latest.tar.gz in the folder.
The Patchomator Policy runs the following command: /usr/local/Installomator/patchomator.sh --yes --write
Log output is as follows:
[STEP 1 of 4]
Executing Policy Patchomator - Run
[STEP 2 of 4]
[STEP 3 of 4]
Running command /usr/local/Installomator/patchomator.sh --yes --write...
Result of command:
[ERROR] Package labels are out of date. Last updated 38 days ago. Attempting to download from https://github.com/installomator/
Downloading https://api.github.com/repos/Installomator/Installomator/tarball/v10.5 to /usr/local/Installomator//installomator.latest.tar.gz
Extracting /usr/local/Installomator//installomator.latest.tar.gz into /usr/local/Installomator/
[ERROR] Installomator was found, but is out of date. You can update it by running
sudo /usr/local/Installomator/Installomator.sh installomator
Patchomator can still discover apps on the system and create a configuration for later use, but will not be able to install or update anything without Installomator.
Download and install Installomator now? [y/N] Continuing without Installomator.
Refreshing /Library/Application Support/Patchomator/patchomator.plist
Initializing Plist...
Processing label 1password7.
Processing label 1password8.
Processing label 1passwordcli.
Processing label 4kvideodownloader.
etc
etc
Processing label zulujdk18.
Processing label zulujdk8.
Passing 31 labels to Installomator: apparency [Labels Scrubbed for github]
Installing apparency...
2023-11-01 11:22:35 : REQ : apparency : ################## Start Installomator v. 10.4, date 2023-06-02
2023-11-01 11:22:35 : INFO : apparency : ################## Version: 10.4
2023-11-01 11:22:35 : INFO : apparency : ################## Date: 2023-06-02
2023-11-01 11:22:35 : INFO : apparency : ################## apparency
2023-11-01 11:22:36 : INFO : apparency : setting variable from argument IGNORE_APP_STORE_APPS="no" LOGGING="INFO" SYSTEMOWNER="0" NOTIFY_DIALOG="1" NOTIFY="success" INTERRUPT_DND="yes" LOGO="appstore" REOPEN="yes" BLOCKING_PROCESS_ACTION="tell_user" PROMPT_TIMEOUT="86400"
2023-11-01 11:22:36 : INFO : apparency : BLOCKING_PROCESS_ACTION=tell_user
2023-11-01 11:22:36 : INFO : apparency : NOTIFY=success
2023-11-01 11:22:36 : INFO : apparency : LOGGING=INFO
2023-11-01 11:22:36 : INFO : apparency : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2023-11-01 11:22:36 : INFO : apparency : Label type: dmg
2023-11-01 11:22:36 : INFO : apparency : archiveName: Apparency.dmg
2023-11-01 11:22:36 : INFO : apparency : no blocking processes defined, using Apparency as default
2023-11-01 11:22:36 : INFO : apparency : App(s) found: /Applications/Apparency.app
2023-11-01 11:22:36 : INFO : apparency : found app at /Applications/Apparency.app, version 1.5, on versionKey CFBundleShortVersionString
2023-11-01 11:22:36 : INFO : apparency : appversion: 1.5
2023-11-01 11:22:36 : INFO : apparency : Latest version of Apparency is 1.6.1
2023-11-01 11:22:36 : REQ : apparency : Downloading https://www.mothersruin.com/software/downloads/Apparency.dmg to Apparency.dmg
2023-11-01 11:22:45 : REQ : apparency : no more blocking processes, continue with update
2023-11-01 11:22:45 : REQ : apparency : Installing Apparency
2023-11-01 11:22:46 : INFO : apparency : Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.wvYW8yvt/Apparency.dmg
2023-11-01 11:22:49 : INFO : apparency : Mounted: /Volumes/Apparency 1.6.1
2023-11-01 11:22:49 : INFO : apparency : Verifying: /Volumes/Apparency 1.6.1/Apparency.app
2023-11-01 11:22:50 : INFO : apparency : Team ID matching: 936EB786NH (expected: 936EB786NH )
2023-11-01 11:22:50 : INFO : apparency : Downloaded version of Apparency is 1.6.1 on versionKey CFBundleShortVersionString (replacing version 1.5).
2023-11-01 11:22:50 : INFO : apparency : App has LSMinimumSystemVersion: 11.0
2023-11-01 11:22:50 : WARN : apparency : Removing existing /Applications/Apparency.app
2023-11-01 11:22:50 : INFO : apparency : Copy /Volumes/Apparency 1.6.1/Apparency.app to /Applications
2023-11-01 11:22:50 : WARN : apparency : Changing owner to reuven.cohen
2023-11-01 11:22:50 : INFO : apparency : Finishing...
2023-11-01 11:22:53 : INFO : apparency : App(s) found: /Applications/Apparency.app
2023-11-01 11:22:53 : INFO : apparency : found app at /Applications/Apparency.app, version 1.6.1, on versionKey CFBundleShortVersionString
2023-11-01 11:22:53 : REQ : apparency : Installed Apparency, version 1.6.1
2023-11-01 11:22:53 : INFO : apparency : notifying
2023-11-01 11:22:54 : INFO : apparency : App not closed, so no reopen.
2023-11-01 11:22:54 : REQ : apparency : All done!
2023-11-01 11:22:54 : REQ : apparency : ################## End Installomator, exit code 0
etc etc for the rest of the labels discovered.
I am testing a process of Deploying Patchomator to workstations via JAMF.
First Policy Installs\Updates local Patchomator script via Installomator script.
Second Policy then runs the following command: /usr/local/Installomator/patchomator.sh --yes --write
Previously it worked as intended (9\23\2023), collecting installed apps and writing it to the config file.
The latest run (11\1\2023) it collected installed apps, then began running installomator to update the apps.