Changeset adcbdaf
- Timestamp:
- Sep 18, 2009 7:27:17 PM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-2.00, version-3.01, version-3.02
- Children:
- 69692a9
- Parents:
- 157ac77
- Location:
- fedkit
- Files:
-
- 1 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/Makefile
r157ac77 radcbdaf 1 1 BINARIES=federate.sh smbmount.FreeBSD.pl smbmount.Linux.pl \ 2 make_hosts fed-tun.pl fed-tun.ucb.pl fed_evrepeater 3 PATCHES=rc.accounts.patch 2 make_hosts fed-tun.pl fed_evrepeater rc.fedaccounts 4 3 5 4 fedkit.tgz: ${BINARIES} ${PATCHES} … … 7 6 mkdir -p /tmp/fedkit/local/federation/etc 8 7 cp ${BINARIES} /tmp/fedkit/local/federation/bin 9 cp ${PATCHES} /tmp/fedkit/local/federation/etc10 8 tar czf fedkit.tgz -C /tmp/fedkit local 11 9 rm -rf /tmp/fedkit -
fedkit/federate.sh
r157ac77 radcbdaf 73 73 cp "$CONFIGDIR/client.conf" "/usr/local/federation/etc" 74 74 chmod 644 "/usr/local/federation/etc/client.conf" 75 # Capture accounts to remove for rc.fedaccounts 76 $EMUDIR/tmcc -b accounts > /usr/local/federation/etc/old_accts 77 chmod 644 "/usr/local/federation/etc/old_accts" 75 78 76 79 # Get our gateway, share, and mount user from the configuration file. … … 120 123 cp /tmp/hosts /etc/hosts && rm /tmp/hosts 121 124 122 # XXX:123 # The standard emulab rc.accounts script won't replace existing user accounts124 # with our new ones, so we have to patch it to do so. This is obviously pretty125 # fragile and needs to change. To make matters worse, our FBSD62-SMB images126 # contain the patched rc.accounts, so this patching step will fail there.127 128 if [ -e /usr/local/federation/etc/rc.accounts.patch ]; then129 cd "$EMUDIR/rc"130 patch -f < /usr/local/federation/etc/rc.accounts.patch131 cd /tmp132 fi133 134 125 # 135 126 # Spin on our gateway! … … 153 144 echo $GATEWAY > $BOSSNODE 154 145 146 # Capture new accounts for rc.fedaccounts 147 $EMUDIR/tmcc -b accounts > /usr/local/federation/etc/accts 148 chmod 644 "/usr/local/federation/etc/accts" 155 149 156 150 # … … 178 172 rm -f /var/emulab/boot/tmcc/accounts 179 173 180 $RCDIR/rc.accounts reconfig 174 /usr/local/federation/bin/rc.fedaccounts 181 175 182 176 #
Note: See TracChangeset
for help on using the changeset viewer.