From 9bde085ab46ba1a234b7ffe340a98cab6f0e3d82 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 27 Mar 2026 17:26:07 -0700 Subject: [PATCH] Change PROD_NAME to PROD_HOST to be more specific. --- bashrc.sh | 6 +++--- example.env | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bashrc.sh b/bashrc.sh index f72204d..1be9c4f 100644 --- a/bashrc.sh +++ b/bashrc.sh @@ -8,8 +8,8 @@ fi # Quickly log onto production server. # Setting up ssh-keygen and ssh-copy-id make this even faster! -if [[ -n $PROD_PORT && -n $PROD_USER && -n $PROD_NAME ]]; then - alias prod="ssh -p $PROD_PORT $PROD_USER@$PROD_NAME" +if [[ -n $PROD_PORT && -n $PROD_USER && -n $PROD_HOST ]]; then + alias prod="ssh -p $PROD_PORT $PROD_USER@$PROD_HOST" else alias prod="echo 'ERROR: .env not set up properly, please fix and reload RC.'" fi @@ -515,7 +515,7 @@ function pull_prod_backup { fi mkdir -pv tmp scp -P $PROD_PORT \ - $PROD_USER@$PROD_NAME:"$BACKUP_DIR/*${backup_type}*.zip" \ + $PROD_USER@$PROD_HOST:"$BACKUP_DIR/*${backup_type}*.zip" \ tmp/ if [[ "$?" == "0" ]]; then echo "Succeeded!" diff --git a/example.env b/example.env index 705934a..f498a06 100644 --- a/example.env +++ b/example.env @@ -1,7 +1,7 @@ # Variables for fast-access of production server. PROD_USER=user -PROD_NAME=example.com +PROD_HOST=example.com PROD_PORT=2222 PROD_GIT_USER=git