* Expanded support to Wahab.
Last updated 2021-03-02.
This commit is contained in:
@@ -1,7 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
DATETIME=$(date +"%Y%m%d-%H%M%S")
|
||||
LOGDIR=$HOME/admin/login-patrol/turing
|
||||
|
||||
CLUSTER=$(cat /etc/cluster)
|
||||
|
||||
case "$CLUSTER" in
|
||||
turing)
|
||||
LOGDIR=$HOME/admin/login-patrol/turing
|
||||
;;
|
||||
wahab)
|
||||
LOGDIR=$HOME/admin/login-patrol/wahab
|
||||
;;
|
||||
*)
|
||||
echo "Error: unsupported cluster: $CLUSTER" >&2
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
|
||||
whats_going_on () {
|
||||
date
|
||||
|
||||
Reference in New Issue
Block a user