Changeset b4624b2


Ignore:
Timestamp:
Feb 10, 2010 10:48:14 AM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
43649f1
Parents:
641bb66
Message:

remove first parameter from make_hosts - we calculate the dir already and it only confuses startcmd generation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/make_hosts

    r641bb66 rb4624b2  
    2424
    2525grep 127\\.0\\.0\\.1 /etc/hosts > /tmp/hosts
    26 cat $1 >> /tmp/hosts
     26cat "$CONFIGDIR/hosts" >> /tmp/hosts
    2727cp /tmp/hosts /etc/hosts && rm /tmp/hosts
    2828
     
    9797# Execute any command passed in as a startcmd.  This basically daisy chains the
    9898# startcmd.  This needs to become a perl script to have uniform behavior here.
    99 echo "*$2* *$3*"
    100 if [ ! -z "$2" ]; then
    101         echo "calling *$2* *$3*"
     99echo "*$1* *$2*"
     100if [ ! -z "$1" ]; then
     101        echo "calling *$1* *$2*"
    102102        case `uname` in
    103103                "FreeBSD")
    104                         su -l "$2" -c "$3"
     104                        su -l "$1" -c "$2"
    105105                        ;;
    106106                "Linux")
    107                         su "$2" --command="$3"
     107                        su "$1" --command="$2"
    108108                        ;;
    109109        esac
Note: See TracChangeset for help on using the changeset viewer.