Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
Removed testing site support completey
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybatch committed Jul 1, 2015
1 parent 4ebf4f7 commit 6e44b8f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ntdr
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,13 @@ ntdr_debug "${COL_CYAN}TESTING_DIR${COL_RESET} ${TESTING_DIR}"
# Check remote folders exist
echo -e "${COL_GREEN}Checking remote servers dirs${COL_RESET}"
ntdr_checkRemoteDirExists $RUSER $RC_HOST $LATEST_DIR
ntdr_checkRemoteDirExists $RUSER $RC_HOST $TESTING_DIR

CURRENT_LIVE_REAL_DIR=`ntdr_remotePath $RUSER $RC_HOST $LATEST_DIR`
CURRENT_TEST_REAL_DIR=`ntdr_remotePath $RUSER $RC_HOST $TESTING_DIR`
CURRENT_LIVE_VERSION=`basename $CURRENT_LIVE_REAL_DIR`
CURRENT_TEST_VERSION=`basename $CURRENT_TEST_REAL_DIR`
ntdr_debug "${COL_CYAN}CURRENT_LIVE_REAL_DIR${COL_RESET} ${CURRENT_LIVE_REAL_DIR}"
ntdr_debug "${COL_CYAN}CURRENT_TEST_REAL_DIR${COL_RESET} ${CURRENT_TEST_REAL_DIR}"
ntdr_debug "${COL_CYAN}CURRENT_LIVE_VERSION${COL_RESET} ${CURRENT_LIVE_VERSION}"
ntdr_debug "${COL_CYAN}CURRENT_TEST_VERSION${COL_RESET} ${CURRENT_TEST_VERSION}"

Expand Down Expand Up @@ -131,7 +132,9 @@ ntdr_createSettingFile $DRUPAL_LOCAL_ROOT $NEW_VERSION
for SITE in $RC_HOST; do
echo -e "${COL_GREEN}Pre-fix permission on ${SITE}${COL_RESET}"
ssh -t $RUSER@$SITE sudo /usr/local/share/Shell-tools/ntdrchown ${CURRENT_LIVE_REAL_DIR}
ssh -t $RUSER@$SITE sudo /usr/local/share/Shell-tools/ntdrchown ${CURRENT_TEST_REAL_DIR}
if [ -e ${CURRENT_TEST_REAL_DIR}/sites/default/settings.php ]; then
ssh -t $RUSER@$SITE sudo /usr/local/share/Shell-tools/ntdrchown ${CURRENT_TEST_REAL_DIR}
fi
done

echo -e "${COL_GREEN}Pre-fix local permissions"
Expand Down

0 comments on commit 6e44b8f

Please sign in to comment.