shell/ssh/install: use $SERVER envvar

This commit is contained in:
Henrik Lissner 2016-12-16 22:08:31 -05:00
parent a2055ed5be
commit f17b4be60a

View file

@ -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/;