Skip to content

Commit

Permalink
Avoid deleting the auth directory
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed Jun 20, 2024
1 parent f74d8a1 commit d2494ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy_dqmgui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ preliminary_checks() {

# Delete installation (config & sw, does not delete state)
if [ -d "${INSTALLATION_DIR:?}/${DMWM_GIT_TAG:?}" ]; then
echo "WARNING: $INSTALLATION_DIR/$DMWM_GIT_TAG exists, deleting contents"
rm -rf "${INSTALLATION_DIR:?}/${DMWM_GIT_TAG:?}/"*
echo "WARNING: $INSTALLATION_DIR/$DMWM_GIT_TAG exists, deleting contents (except auth)"
find "${INSTALLATION_DIR:?}/${DMWM_GIT_TAG:?}/" -maxdepth 1 -type d ! -name auth -exec rm -rf {} \;
fi

if [ -n "$DMWM_PRS" ]; then
Expand Down

0 comments on commit d2494ea

Please sign in to comment.