mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 16:24:39 +02:00
upstream: Use $SUDO when reading sshd's pidfile here too.
OpenBSD-Regress-ID: 6bfb0d455d493f24839034a629c5306f84dbd409
This commit is contained in:
parent
a3a58acffc
commit
31fac20c94
@ -1,4 +1,4 @@
|
|||||||
# $OpenBSD: reconfigure.sh,v 1.8 2021/06/10 09:43:51 dtucker Exp $
|
# $OpenBSD: reconfigure.sh,v 1.9 2021/06/10 09:46:28 dtucker Exp $
|
||||||
# Placed in the Public Domain.
|
# Placed in the Public Domain.
|
||||||
|
|
||||||
tid="simple connect after reconfigure"
|
tid="simple connect after reconfigure"
|
||||||
@ -45,7 +45,7 @@ fi
|
|||||||
trace "reconfigure with active clients"
|
trace "reconfigure with active clients"
|
||||||
${SSH} -F $OBJ/ssh_config somehost sleep 10 # authenticated client
|
${SSH} -F $OBJ/ssh_config somehost sleep 10 # authenticated client
|
||||||
${NC} -d 127.0.0.1 $PORT >/dev/null & # unauthenticated client
|
${NC} -d 127.0.0.1 $PORT >/dev/null & # unauthenticated client
|
||||||
PID=`cat $PIDFILE`
|
PID=`$SUDO cat $PIDFILE`
|
||||||
rm -f $PIDFILE
|
rm -f $PIDFILE
|
||||||
$SUDO kill -HUP $PID
|
$SUDO kill -HUP $PID
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user