annotate src/update @ 48:5ef10dc14457

properly drop root privs
author carl
date Fri, 09 Jul 2004 13:57:59 -0700
parents 2eef08791e11
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
96a9758165cd Initial revision
carl
parents:
diff changeset
1 #!/bin/bash
96a9758165cd Initial revision
carl
parents:
diff changeset
2
96a9758165cd Initial revision
carl
parents:
diff changeset
3 targets="ns1 davd"
5
793ac9cc114d updates to use dcc conf files
carl
parents: 0
diff changeset
4
793ac9cc114d updates to use dcc conf files
carl
parents: 0
diff changeset
5 for i in $targets; do
793ac9cc114d updates to use dcc conf files
carl
parents: 0
diff changeset
6 DST=/usr/src/rh8/dnsbl
793ac9cc114d updates to use dcc conf files
carl
parents: 0
diff changeset
7 ssh $i "mkdir -p $DST"
793ac9cc114d updates to use dcc conf files
carl
parents: 0
diff changeset
8 scp * $i:$DST
793ac9cc114d updates to use dcc conf files
carl
parents: 0
diff changeset
9 ssh $i "cd $DST; sh install.bash"
793ac9cc114d updates to use dcc conf files
carl
parents: 0
diff changeset
10 done
45
2eef08791e11 changes for 3.2
carl
parents: 5
diff changeset
11
2eef08791e11 changes for 3.2
carl
parents: 5
diff changeset
12 DST=/etc/dnsbl
2eef08791e11 changes for 3.2
carl
parents: 5
diff changeset
13 for i in $targets; do
2eef08791e11 changes for 3.2
carl
parents: 5
diff changeset
14 scp $DST/*.conf $i:$DST
2eef08791e11 changes for 3.2
carl
parents: 5
diff changeset
15 done