Changing hostname check to domain name check

This commit is contained in:
Noah L. Schrick 2021-12-10 15:56:17 -06:00
parent 879c32ffa5
commit c6c5171d38
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
if [ "$HOSTNAME" = "login" ]; then
if [ "$DNSDOMAINNAME" = "hammer.esg.utulsa.edu" ]; then
echo "Loading Modules."
module load cmake
module load gcc

View File

@ -11,7 +11,7 @@ strval1="sync"
strval2="non-sync"
#Hammer
if [ "$HOSTNAME" = "login" ]; then
if [ "$DNSDOMAINNAME" = "hammer.esg.utulsa.edu" ]; then
#Database stored on node with port
if psql -p 5240 -h login ${DBNAME} -c '\q' 2>&1; then
echo "Database ${DBNAME} exists. Dropping and recreating from dump."