Changing hostname check to domain name check
This commit is contained in:
parent
879c32ffa5
commit
c6c5171d38
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [ "$HOSTNAME" = "login" ]; then
|
if [ "$DNSDOMAINNAME" = "hammer.esg.utulsa.edu" ]; then
|
||||||
echo "Loading Modules."
|
echo "Loading Modules."
|
||||||
module load cmake
|
module load cmake
|
||||||
module load gcc
|
module load gcc
|
||||||
|
|||||||
@ -11,7 +11,7 @@ strval1="sync"
|
|||||||
strval2="non-sync"
|
strval2="non-sync"
|
||||||
|
|
||||||
#Hammer
|
#Hammer
|
||||||
if [ "$HOSTNAME" = "login" ]; then
|
if [ "$DNSDOMAINNAME" = "hammer.esg.utulsa.edu" ]; then
|
||||||
#Database stored on node with port
|
#Database stored on node with port
|
||||||
if psql -p 5240 -h login ${DBNAME} -c '\q' 2>&1; then
|
if psql -p 5240 -h login ${DBNAME} -c '\q' 2>&1; then
|
||||||
echo "Database ${DBNAME} exists. Dropping and recreating from dump."
|
echo "Database ${DBNAME} exists. Dropping and recreating from dump."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user