Skip to content

Commit

Permalink
BUG#31029334 ROUTER DATAFILES ARE BY DEFAULT KEPT IN NON-PERSISTENT D…
Browse files Browse the repository at this point in the history
…IR IF INSTALLED FROM DEB

Post push fix.

RB: 24073
  • Loading branch information
Andrzej Religa authored and dahlerlend committed Mar 23, 2020
1 parent 22058fd commit a4b2a21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packaging/deb-in/mysql-router-packagesource.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ fix_datadir_path() {
return 0
fi

# we don't want the grep not being able to find the pattern to fail the script
set +e
has_invalid_keyring_path=$(grep "^keyring_path=$INVALID_DATA_DIR/keyring$" $CONFIGFILE)
has_invalid_statefile_path=$(grep "^dynamic_state=$INVALID_DATA_DIR/state.json$" $CONFIGFILE)
set -e

if [ -z "$has_invalid_keyring_path" ] && [ -z "$has_invalid_statefile_path" ]; then
return 0
Expand Down

0 comments on commit a4b2a21

Please sign in to comment.