Mercurial > crates > nonstick
comparison testharness/install-test-harness.sh @ 169:77470e45e397
Set up stuff to work the way Sun expects it to.
This sets up PAM to use pam_authtok_get.so on Sun machines.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Tue, 15 Jul 2025 01:32:21 -0400 |
parents | c4b1e280463c |
children |
comparison
equal
deleted
inserted
replaced
168:6642e89d29a2 | 169:77470e45e397 |
---|---|
6 | 6 |
7 patch_pam_conf() { | 7 patch_pam_conf() { |
8 SRC="$1" | 8 SRC="$1" |
9 DST="$2" | 9 DST="$2" |
10 LIB="$3" | 10 LIB="$3" |
11 sed "s#pam_testharness\.so#$LIB#" <"$SRC" >"$DST" | 11 SUN_PATCH="" |
12 if [ "$(uname -s)" = "SunOS" ]; then | |
13 SUN_PATCH="s/^#Sun#//" | |
14 fi | |
15 sed -e "s#pam_testharness\.so#$LIB#" -e "$SUN_PATCH" <"$SRC" >"$DST" | |
12 } | 16 } |
13 | 17 |
14 setup_pam_conf() { | 18 setup_pam_conf() { |
15 SRC="$1" | 19 SRC="$1" |
16 case "$(uname -s)" in | 20 case "$(uname -s)" in |