aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-nodes
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2008-06-01 21:43:26 +0000
committerPetter Reinholdtsen <pere@hungry.com>2008-06-01 21:43:26 +0000
commit00d16d08cc735c3f4a2f00ba3a10b9d84d607410 (patch)
tree27d7586328fc11cbcbd02bd902ac482349d1a494 /sitesummary-nodes
parent0c2dbea99ff4a4458fc073082cba169ea78893ae (diff)
downloadsitesummary-00d16d08cc735c3f4a2f00ba3a10b9d84d607410.tar.gz
sitesummary-00d16d08cc735c3f4a2f00ba3a10b9d84d607410.tar.bz2
sitesummary-00d16d08cc735c3f4a2f00ba3a10b9d84d607410.tar.xz
Typos.
Diffstat (limited to 'sitesummary-nodes')
-rwxr-xr-xsitesummary-nodes12
1 files changed, 2 insertions, 10 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes
index e08efcd..1a08470 100755
--- a/sitesummary-nodes
+++ b/sitesummary-nodes
@@ -24,12 +24,6 @@ if ($opts{'m'}) {
print_list();
}
-sub in_dns {
- my $hostname = shift;
- my $packed_ip = gethostbyname($hostname);
- return defined $packed_ip;
-}
-
sub handle_host {
my $hostid = shift;
my $address = get_dns_address($hostid);
@@ -182,8 +176,7 @@ define service {
check_command check_ssh
}
EOF
- print <<EOF if (is_pkg_installed($hostid, "apache") ||
- is_pkg_installed($hostid, "apache2"));
+ print <<EOF if (is_pkg_installed($hostid, "apache") || is_pkg_installed($hostid, "apache2"));
define service {
use server-service
host_name $hostname
@@ -192,8 +185,7 @@ define service {
}
EOF
- print <<EOF if (is_pkg_installed($hostid, "ntp") ||
- is_pkg_installed($hostid, "ntp-server"));
+ print <<EOF if (is_pkg_installed($hostid, "ntp") || is_pkg_installed($hostid, "ntp-server"));
define service {
use server-service
host_name $hostname