File: lam.updatelist

package info (click to toggle)
lam 7.1.4-8
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 56,404 kB
  • sloc: ansic: 156,541; sh: 9,991; cpp: 7,699; makefile: 5,621; perl: 488; fortran: 260; asm: 83
file content (27 lines) | stat: -rw-r--r-- 341 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash 

set -e

IN=/etc/update-cluster/cluster.xml
OUT=/etc/lam/lam-bhost.def
EX=/usr/bin/update-cluster

if ! [ -e $IN ] ; then
	echo $IN does not exist
	exit 1
fi

if ! [ -e $OUT ] ; then
	echo $OUT does not exist
	exit 1
fi

if ! [ -x $EX ] ; then
	echo $EX does not exist as executable
	exit 1
fi

$EX hostname <$IN >$OUT

exit 0