We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22058fd commit a4b2a21Copy full SHA for a4b2a21
packaging/deb-in/mysql-router-packagesource.postinst
@@ -37,8 +37,11 @@ fix_datadir_path() {
37
return 0
38
fi
39
40
+ # we don't want the grep not being able to find the pattern to fail the script
41
+ set +e
42
has_invalid_keyring_path=$(grep "^keyring_path=$INVALID_DATA_DIR/keyring$" $CONFIGFILE)
43
has_invalid_statefile_path=$(grep "^dynamic_state=$INVALID_DATA_DIR/state.json$" $CONFIGFILE)
44
+ set -e
45
46
if [ -z "$has_invalid_keyring_path" ] && [ -z "$has_invalid_statefile_path" ]; then
47
0 commit comments