Skip to content

Commit a4b2a21

Browse files
Andrzej Religadahlerlend
authored andcommitted
BUG#31029334 ROUTER DATAFILES ARE BY DEFAULT KEPT IN NON-PERSISTENT DIR IF INSTALLED FROM DEB
Post push fix. RB: 24073
1 parent 22058fd commit a4b2a21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packaging/deb-in/mysql-router-packagesource.postinst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ fix_datadir_path() {
3737
return 0
3838
fi
3939

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

4346
if [ -z "$has_invalid_keyring_path" ] && [ -z "$has_invalid_statefile_path" ]; then
4447
return 0

0 commit comments

Comments
 (0)