From cb4c96cbd3ffb02593dce833856a452f6f79e39c Mon Sep 17 00:00:00 2001 From: Sun Knudsen Date: Mon, 31 Oct 2022 07:17:19 -0400 Subject: [PATCH] Added steps to undo guide --- .../README.md | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/how-to-disable-cups-pinter-job-history-on-macos/README.md b/how-to-disable-cups-pinter-job-history-on-macos/README.md index bbeaca8..ab303bb 100644 --- a/how-to-disable-cups-pinter-job-history-on-macos/README.md +++ b/how-to-disable-cups-pinter-job-history-on-macos/README.md @@ -81,3 +81,39 @@ EOF ``` ### Step 6: reboot + +👍 + +--- + +## Want things back the way they were before following this guide? No problem! + +### Step 1: delete `PreserveJobHistory Off` line from `cupsd.conf` + +```shell +sudo sed -i "" "/PreserveJobHistory Off/d" /etc/cups/cupsd.conf +``` + +### Step 2: delete `cups.sh` script + +```shell +sudo rm /usr/local/sbin/cups.sh +``` + +### Step 3: delete `local.cups.plist` launch daemon + +```shell +sudo rm /Library/LaunchDaemons/local.cups.plist +``` + +### Step 4: reload CUPS + +```shell +sudo launchctl unload /System/Library/LaunchDaemons/org.cups.cupsd.plist + +sudo launchctl load /System/Library/LaunchDaemons/org.cups.cupsd.plist +``` + +### Step 5: reboot + +👍