source: fedkit/make_hosts @ 8034579

axis_examplecompt_changesinfo-opsversion-1.30version-2.00version-3.01version-3.02
Last change on this file since 8034579 was e06b224, checked in by Ted Faber <faber@…>, 17 years ago

run the startcmd you idiot (meaning me)

  • Property mode set to 100755
File size: 308 bytes
Line 
1#!/bin/sh
2
3# Very simple script to copy the global hosts file over the local one
4# while preserving the localhost entry.  Run on DETER master clients
5
6grep 127\\.0\\.0\\.1 /etc/hosts > /tmp/hosts
7cat $1 >> /tmp/hosts
8cp /tmp/hosts /etc/hosts && rm /tmp/hosts
9
10
11if [ ! -z "$2" ]; then 
12        su -l "$2" -c "$3"
13fi
Note: See TracBrowser for help on using the repository browser.