[POLICY] Add force to clamp-be db script 18/120818/4
authorsebdet <sebastien.determe@intl.att.com>
Thu, 22 Apr 2021 08:50:14 +0000 (10:50 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Thu, 6 May 2021 06:33:16 +0000 (06:33 +0000)
Add a force flag so that clamp can be mounted even if the db already exists

Issue-ID: POLICY-3161
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Change-Id: I784c354378fbad3281b9adc55ff7aa0bc2ef3510

kubernetes/policy/components/policy-clamp-be/resources/config/create-db-tables.sh

index 329479f..ad9984c 100755 (executable)
@@ -16,4 +16,4 @@
 # limitations under the License.
 */}}
 
-mysql -h"${MYSQL_HOST}" -P"${MYSQL_PORT}" -u"${MYSQL_USER}" -p"${MYSQL_PASSWORD}" policyclamp < /dbcmd-config/policy-clamp-create-tables.sql
+mysql -h"${MYSQL_HOST}" -P"${MYSQL_PORT}" -u"${MYSQL_USER}" -p"${MYSQL_PASSWORD}" -f policyclamp < /dbcmd-config/policy-clamp-create-tables.sql