X-Git-Url: https://git.slaskete.net/einar-bin/blobdiff_plain/808e834575c4cf0a65cc9d4c72379c63449f4b5c..75ab68fc868e38c52ac87d5d6686e6985c6131d6:/addfollowmeprint.sh diff --git a/addfollowmeprint.sh b/addfollowmeprint.sh index 7338e15..f50b1d0 100755 --- a/addfollowmeprint.sh +++ b/addfollowmeprint.sh @@ -323,12 +323,14 @@ if [ "${Uname}" = "darwin" ]; then # Make sure the password has the correct ACL ref https://mostlikelee.com/blog-1/2017/9/16/scripting-the-macos-keychain-partition-ids OS_Min_Vers=$(sw_vers | grep ProductVersion | awk '{print $2}' | cut -d "." -f2) if [ "${OS_Min_Vers}" -ge 12 ]; then - echo "\nNOTE: You need to provide your local Mac password again here in order to give the printing system access to your credentials.\n" - security set-internet-password-partition-list -S "apple-tool:,apple:" -s "${PrintServer}" + echo -e "\nNOTE: You need to provide your local Mac password again here in order to give the printing system access to your credentials.\n" + security set-internet-password-partition-list -S "apple-tool:,apple:" -s "${PrintServer}" > /dev/null fi sudo cupsenable "${QueueName}" sudo cupsaccept "${QueueName}" + sudo launchctl stop org.cups.cupsd + sudo launchctl start org.cups.cupsd fi # Set correct paper size and enable the duplexer option