Bugs fixed in scripts related to database init and migrate
Change-Id: Ie03ed8ba52a2d10296cef20860aceed35462702b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/scripts/install-openmano.sh b/scripts/install-openmano.sh
index 4a2ff72..3849bd7 100755
--- a/scripts/install-openmano.sh
+++ b/scripts/install-openmano.sh
@@ -257,7 +257,7 @@
#################################################################'
echo -e "\nCreating temporary file form MYSQL installation and initialization"
TEMPFILE="$(mktemp -q --tmpdir "installopenmano.XXXXXX")"
-trap 'rm -f "$TEMPFILE"' EXIT
+trap 'rm -f "$TEMPFILE"' EXIT SIGINT SIGTERM
chmod 0600 "$TEMPFILE"
cat >"$TEMPFILE" <<EOF
[client]