[SDNC] Check existance of DB user before creation 37/119437/9
authorandreasgeissler <andreas-geissler@telekom.de>
Wed, 17 Mar 2021 08:49:59 +0000 (09:49 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Sun, 21 Mar 2021 18:30:26 +0000 (18:30 +0000)
commita72340f91c9d12c9bdcdf8d3b514ac01ec177be7
treef1ec2f7173aa01e4bc84924fba5b8c76b1bb241e
parentfde94076e689727e8a2c3c5147ce1242dc225f87
[SDNC] Check existance of DB user before creation

When installing SDNC in a local DB, the execution of the DB
initialisation job fails as the user already exists and granting the
privileges to the DB is not executed.

This patch will only create the user and DB if not already present.

Issue-ID: OOM-2705
Signed-off-by: andreasgeissler <andreas-geissler@telekom.de>
Change-Id: Iabfc90829cea1f98181caf3367c8f2b78de96c7f
kubernetes/sdnc/resources/config/bin/installSdncDb.sh