git.slaskete.net
/
einar-bin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
bf58d21
)
Typo in variable Workgroup - fml
author
Einar Jørgen Haraldseid
<einar@haraldseid.net>
Wed, 15 Mar 2017 11:02:00 +0000
(12:02 +0100)
committer
Einar Jørgen Haraldseid
<einar@haraldseid.net>
Wed, 15 Mar 2017 11:02:00 +0000
(12:02 +0100)
addfollowmeprint.sh
patch
|
blob
|
history
diff --git
a/addfollowmeprint.sh
b/addfollowmeprint.sh
index 1f70200b1fb89f8fcefe648f25e1f724985ab6b6..d4352896fb27d65ba8cb5e060f312a1b7cd364fb 100755
(executable)
--- a/
addfollowmeprint.sh
+++ b/
addfollowmeprint.sh
@@
-268,7
+268,7
@@
if [ "${Uname}" = "darwin" ]; then
# Add credentials to the keychain if they are missing
# Shamelessly stolen from https://github.com/Orakeltjenesten/scripts/blob/33abfb353524f449f0bbdee27adb2f1f0a9756a2/print/ntnuprint-mac.sh
if ! security find-internet-password -s ${PrintServer} >/dev/null 2>&1; then
# Add credentials to the keychain if they are missing
# Shamelessly stolen from https://github.com/Orakeltjenesten/scripts/blob/33abfb353524f449f0bbdee27adb2f1f0a9756a2/print/ntnuprint-mac.sh
if ! security find-internet-password -s ${PrintServer} >/dev/null 2>&1; then
- security -v add-internet-password -a "${Work
G
roup}\\${Username}" -s ${PrintServer} \
+ security -v add-internet-password -a "${Work
g
roup}\\${Username}" -s ${PrintServer} \
-w "${Password}" -D "Network Password" -r "smb " -l "${QueueName}" \
-T /System/Library/CoreServices/NetAuthAgent.app -T 'group://NetAuth' \
-T /System/Library/CoreServices/NetAuthAgent.app/Contents/MacOS/NetAuthSysAgent >/dev/null 2>&1
-w "${Password}" -D "Network Password" -r "smb " -l "${QueueName}" \
-T /System/Library/CoreServices/NetAuthAgent.app -T 'group://NetAuth' \
-T /System/Library/CoreServices/NetAuthAgent.app/Contents/MacOS/NetAuthSysAgent >/dev/null 2>&1