Commit 701cb551 authored by Mike Hibler's avatar Mike Hibler
Browse files

Nit: add switch-backup to excluded files.

parent 8f19f0dd
#!/usr/bin/perl -wT #!/usr/bin/perl -wT
# #
# Copyright (c) 2000-2012 University of Utah and the Flux Group. # Copyright (c) 2000-2013 University of Utah and the Flux Group.
# #
# {{{EMULAB-LICENSE # {{{EMULAB-LICENSE
# #
...@@ -30,8 +30,8 @@ my $RSYNC = 'rsync'; ...@@ -30,8 +30,8 @@ my $RSYNC = 'rsync';
my $RSYNC_OPTS = "-W -u -av --delete --force"; my $RSYNC_OPTS = "-W -u -av --delete --force";
my @excludes=qw#cisco-config/ cisco-config. hp-config/ OLD/ tmp/ /proj/#; my @excludes=qw#cisco-config/ cisco-config. hp-config/ OLD/ tmp/ /proj/ switch-backup#;
my @includes=qw#INCLUDE_ME#; my @includes=qw##;
# #
# dhcpd_makeconf - helper script to create dhcpd.conf files from the database. # dhcpd_makeconf - helper script to create dhcpd.conf files from the database.
...@@ -101,13 +101,14 @@ for (@includes) { ...@@ -101,13 +101,14 @@ for (@includes) {
$cmdline .= " -e ssh /tftpboot/"; $cmdline .= " -e ssh /tftpboot/";
# Slurp in all of the subboss data to know A) if we should serve the DHCP # Slurp in all of the subboss data to know if we should serve the DHCP
# lease to a given node, or if the next-server field should be something # lease to a given node, or if the next-server field should be something
# other than the IP for boss. # other than the IP for boss.
$query_result = $query_result =
DBQueryWarn("select distinct subboss_id from subbosses where service = 'tftp'"); DBQueryWarn("select distinct subboss_id from subbosses ".
if (! $query_result) { "where service='tftp'");
fatal("Could not dhcpd data from DB!"); if (!$query_result) {
fatal("Could not subboss data from DB!");
} }
while (my %row = $query_result->fetchhash()) { while (my %row = $query_result->fetchhash()) {
my $subboss_id = $row{"subboss_id"}; my $subboss_id = $row{"subboss_id"};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment