Fixes bug #57
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 27 Sep 2016 09:16:14 +0000 (11:16 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 27 Sep 2016 09:16:14 +0000 (11:16 +0200)
Change-Id: I5046992bf7e9d4be2a87dfd22074199830ad00e3
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
database_utils/init_mano_db.sh
database_utils/migrate_mano_db.sh
scripts/install-openmano.sh

index 9fc9b75..224269b 100755 (executable)
@@ -98,7 +98,7 @@ DBHOST_="-h$DBHOST"
 DBPORT_="-P$DBPORT"
 
 TEMPFILE="$(mktemp -q --tmpdir "initmanodb.XXXXXX")"
-trap 'rm -f "$TEMPFILE"' EXIT SIGINT SIGTERM
+trap 'rm -f "$TEMPFILE"' EXIT
 chmod 0600 "$TEMPFILE"
 cat >"$TEMPFILE" <<EOF
 [client]
index f9d4799..447eb81 100755 (executable)
@@ -111,7 +111,7 @@ OPENMANO_VER_NUM=`printf "%d%03d%03d" ${VERSION_1} ${VERSION_2} ${VERSION_3}`
 
 #Creating temporary file
 TEMPFILE="$(mktemp -q --tmpdir "migratemanodb.XXXXXX")"
-trap 'rm -f "$TEMPFILE"' EXIT SIGINT SIGTERM
+trap 'rm -f "$TEMPFILE"' EXIT
 chmod 0600 "$TEMPFILE"
 cat >"$TEMPFILE" <<EOF
 [client]
index 3849bd7..4a2ff72 100755 (executable)
@@ -257,7 +257,7 @@ echo '
 #################################################################'
 echo -e "\nCreating temporary file form MYSQL installation and initialization"
 TEMPFILE="$(mktemp -q --tmpdir "installopenmano.XXXXXX")"
-trap 'rm -f "$TEMPFILE"' EXIT SIGINT SIGTERM
+trap 'rm -f "$TEMPFILE"' EXIT
 chmod 0600 "$TEMPFILE"
 cat >"$TEMPFILE" <<EOF
 [client]