Changeset 65 for trunk/dsys/comINSTALL


Ignore:
Timestamp:
Oct 29, 2006, 11:33:21 PM (18 years ago)
Author:
rainer
Message:

Fix some minor bugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dsys/comINSTALL

    r40 r65  
    329329        if test "x$mytest_file" = x; then
    330330            rcfile_perm=640;
    331             rcfile_owner=`ls -ld ${yule_data} | awk '{print $3 }'`
    332             rcfile_group=`ls -ld ${yule_data} | awk '{print $4 }'`
     331            xgid=`(cat /etc/group; ypcat group) 2>/dev/null |\
     332              grep "^samhain:" | awk -F: '{ print $3; }'`
     333            if test "x$xgid" = x; then
     334              rcfile_owner=`ls -ld ${yule_data} | awk '{print $3 }'`
     335              rcfile_group=`ls -ld ${yule_data} | awk '{print $4 }'`
     336            else
     337              rcfile_owner=`ls -ld ${yule_data} | awk '{print $3 }'`
     338              rcfile_group=samhain
     339            fi
    333340        else
    334341            mytest_file=`basename $mytest_file`
     
    546553        if test "x$mytest_file" = x; then
    547554            rcfile_perm=640;
    548             rcfile_owner=`ls -ld ${yule_data} | awk '{print $3 }'`
    549             rcfile_group=`ls -ld ${yule_data} | awk '{print $4 }'`
     555            xgid=`(cat /etc/group; ypcat group) 2>/dev/null |\
     556              grep "^samhain:" | awk -F: '{ print $3; }'`
     557            if test "x$xgid" = x; then
     558              rcfile_owner=`ls -ld ${yule_data} | awk '{print $3 }'`
     559              rcfile_group=`ls -ld ${yule_data} | awk '{print $4 }'`
     560            else
     561              rcfile_owner=`ls -ld ${yule_data} | awk '{print $3 }'`
     562              rcfile_group=samhain
     563            fi
    550564        else
    551565            mytest_file=`basename $mytest_file`
Note: See TracChangeset for help on using the changeset viewer.