shell/ssh/install: use $SERVER envvar
This commit is contained in:
parent
a2055ed5be
commit
f17b4be60a
|
@ -35,7 +35,7 @@ sudo sed -i 's/^#\(AllowTcpForwarding\).*/\1 yes/;
|
|||
' "$sshconf"
|
||||
|
||||
# Enable X11 forwarding on desktop PCs (not remotes)
|
||||
if [[ $OSTYPE == darwin* || -f /etc/arch-release ]]; then
|
||||
if [[ -z $SERVER ]]; then
|
||||
sudo sed -i 's/^#\(X11Forwarding\).*/\1 yes/;
|
||||
s/^#\(X11DisplayOffset.*\)/\1/;
|
||||
s/^#\(X11UseLocalhost\).*/\1 yes/;
|
||||
|
|
Loading…
Reference in a new issue