Artifact a5c58a17c8469414602e03407a580472e6fe55f8:
- Executable file utils/homehost_check.sh — part of check-in [2637cbf116] at 2017-01-21 22:56:25 on branch v.1.63-resurrect-db-refresh-timestamp-gate — Fixed sqlite3 file mod time based update sensitivity mechanism, wrong filename was being used. (user: matt, size: 351) [annotate] [blame] [check-ins using] [more...]
#! /bin/bash #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