Megatest

Check-in [3e82d9d73f]
Login
Overview
Comment:adding script to do check whether on home host
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.63
Files: files | file ages | folders
SHA1: 3e82d9d73ff72e2a4f0e3197bb533f84137fd047
User & Date: bjbarcla on 2017-01-13 17:05:13
Other Links: branch diff | manifest | tags
Context
2017-01-21
22:57
Merged in db refresh timestamp gate check-in: f24fe39093 user: matt tags: v1.63
2017-01-20
16:02
wip check-in: 70c6fdb986 user: bjbarcla tags: v.1.63-resurrect-db-refresh-timestamp-gate
2017-01-17
14:16
merged with latest 1.63 check-in: acf8e3060c user: srehman tags: v1.63-configdbsync
2017-01-13
17:50
Automated merge of v1.63/3e82d9d73f/integ into integ-home check-in: 01a7a8df36 user: matt tags: integ-home
17:06
wip check-in: 6217b90877 user: bjbarcla tags: v1.63-xor-report
17:05
Create new branch named "v1.63-xor-report" check-in: 9bf046a24b user: bjbarcla tags: v1.63-xor-report
17:05
adding script to do check whether on home host check-in: 3e82d9d73f user: bjbarcla tags: v1.63
17:03
merged v1.63-stackdumpfix check-in: cc2e1ee395 user: bjbarcla tags: v1.63
Changes

Added utils/homehost_check.sh version [f297bf7c02].



































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

#exits 1 when current host is not homehost.

if [[ ! -e .homehost ]]; then
    exit 0
fi

homehostname=$( host `cat .homehost` | awk '{print $NF}' | sed 's/\.$//' )
hostname=$( hostname -f )

if [[ $homehostname == $hostname ]]; then
    exit 0
fi
echo "ERROR: this host ($homehostname) is not the megatest homehost ($hostname)"
exit 1