Changeset 646


Ignore:
Timestamp:
08/03/12 10:51:23 (10 months ago)
Author:
jeremyhu@…
Message:

Set XAuthLocation in /etc/ssh_config and /etc/sshd_config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pkg/scripts/postinst_sl.sh

    r638 r646  
    11#!/bin/sh 
    22 
    3 [[ -f /etc/paths.d/XQuartz ]] && rm /etc/paths.d/XQuartz  
    4 [[ -f /etc/manpaths.d/XQuartz ]] && rm /etc/manpaths.d/XQuartz  
     3if ! cat /etc/sshd_config | grep -v '^#' | grep -q XAuthLocation ; then 
     4    { 
     5        echo "" 
     6        echo "# XAuthLocation added by XQuartz (http://xquartz.macosforge.org)" 
     7        echo "XAuthLocation /opt/X11/bin/xauth" 
     8    } >> /etc/sshd_config 
     9fi 
     10 
     11if ! cat /etc/ssh_config | grep -v '^#' | grep -q XAuthLocation ; then 
     12    { 
     13        echo "" 
     14        echo "# XAuthLocation added by XQuartz (http://xquartz.macosforge.org)" 
     15        echo "Host *" 
     16        echo "    XAuthLocation /opt/X11/bin/xauth" 
     17    } >> /etc/ssh_config 
     18fi 
     19 
     20[[ -f /etc/paths.d/XQuartz ]] && rm /etc/paths.d/XQuartz 
     21[[ -f /etc/manpaths.d/XQuartz ]] && rm /etc/manpaths.d/XQuartz 
    522 
    623[[ -d /opt/X11/include/libpng12 ]] && rm -rf /opt/X11/include/libpng12 
Note: See TracChangeset for help on using the changeset viewer.