mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
tests: update tests to include the running username/group
That removes the requirement to keep a uid_wrapper specific hack in check_upeer_id().
This commit is contained in:
@@ -46,7 +46,11 @@ fi
|
||||
|
||||
update_config() {
|
||||
file=$1
|
||||
username=$(whoami)
|
||||
group=$(groups|cut -f 1 -d ' ')
|
||||
cp ${srcdir}/${file} "$file.tmp"
|
||||
sed -i 's|@USERNAME@|'${username}'|g' "$file.tmp"
|
||||
sed -i 's|@GROUP@|'${group}'|g' "$file.tmp"
|
||||
sed -i 's|@SRCDIR@|'${srcdir}'|g' "$file.tmp"
|
||||
CONFIG="$file.tmp"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user