From 04320cea431a195814c6bfe88ac76011283c78c1 Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Thu, 28 Mar 2019 19:40:19 +0900 Subject: [PATCH] Replace exec into /bin/sh in upgrade script - exec replaces shell itself so sciprts will terminate when command terminates executed by exec. Change-Id: Ic6e650237bad77a835afa0bb240b9229ae7d842c Signed-off-by: Junghyun Yeon --- data/updates/update.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/updates/update.sh.in b/data/updates/update.sh.in index 81cd697..7b91abf 100644 --- a/data/updates/update.sh.in +++ b/data/updates/update.sh.in @@ -22,7 +22,7 @@ echo "Pkgmgr database current version: $DB_VERSION_OLD, target version: $DB_VERS #if old version is less than 1, upgrade to 30000, default version of tizen_3.0 if [ $DB_VERSION_OLD -le $DB_VERSION_TIZEN24 ]; then echo "Updating $PARSER_DB_PATH to $DB_VERSION_TIZEN30_DEFAULT" - exec "$UPDATE_SCRIPT_LOCATION/$UPDATE_SCRIPT_PREFIX$DB_VERSION_TIZEN30_DEFAULT.sh" + /bin/sh "$UPDATE_SCRIPT_LOCATION/$UPDATE_SCRIPT_PREFIX$DB_VERSION_TIZEN30_DEFAULT.sh" DB_VERSION_OLD=30000 fi @@ -31,5 +31,5 @@ do echo "Updating $PARSER_DB_PATH to $i (target version is $DB_VERSION_NEW)" UPDATE_SCRIPT="$UPDATE_SCRIPT_LOCATION/$UPDATE_SCRIPT_PREFIX$i.sh" [ ! -e "$UPDATE_SCRIPT" ] && echo "Can't find script $UPDATE_SCRIPT" && exit 1 - exec $UPDATE_SCRIPT + /bin/sh $UPDATE_SCRIPT done -- 2.7.4