From: Eric Bollengier Date: Tue, 22 Nov 2022 08:33:20 +0000 (+0100) Subject: Fix org#2577 Remove -f option from MySQL update scripts to detect errors properly X-Git-Tag: Release-13.0.2~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b1ea26410634696821eb67a48603456ee88d634;p=thirdparty%2Fbacula.git Fix org#2577 Remove -f option from MySQL update scripts to detect errors properly --- diff --git a/bacula/src/cats/update_mysql_tables.in b/bacula/src/cats/update_mysql_tables.in index 7f2ab8698..d4bb96dae 100644 --- a/bacula/src/cats/update_mysql_tables.in +++ b/bacula/src/cats/update_mysql_tables.in @@ -65,12 +65,12 @@ fi # For all versions, we need to create the Index on Media(StorageId) # It may fail, but it's not a big problem -# mysql $* -f </dev/null 2> /dev/null +# mysql $* </dev/null 2> /dev/null # CREATE INDEX media_storageid_idx ON Media (StorageId); # END-OF-DATA if [ "$DBVERSION" -eq 12 ] ; then - if mysql $* -f </dev/null 2> /dev/null +# mysql $* </dev/null 2> /dev/null # CREATE INDEX media_storageid_idx ON Media (StorageId); # END-OF-DATA if [ "$DBVERSION" -eq 12 ] ; then - if mysql $* -f <