Upgrade: specify table sql files pull path 67/101467/1 accepted/tizen/common/20161202.233136 accepted/tizen/ivi/20161204.235619 accepted/tizen/mobile/20161204.235530 accepted/tizen/tv/20161204.235544 accepted/tizen/wearable/20161204.235600 submit/tizen/20161202.021015
authorSunmin Lee <sunm.lee@samsung.com>
Wed, 30 Nov 2016 05:48:48 +0000 (14:48 +0900)
committersangwan.kwon <sangwan.kwon@samsung.com>
Thu, 1 Dec 2016 08:25:20 +0000 (17:25 +0900)
Without full path, the table file has been created at upgrade directory
(/usr/share/upgrade). It should not be used because it is RO partition.
So specify the full path of table file under the RW partition.

Change-Id: I4ba7ce3ee1f165dcd5a83bbaa9a8f520a056864c
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
(cherry picked from commit ad4eeca70736591c4488db72710f7cd6f8c4853e)

etc/upgrade/cert-svc-db-upgrade.sh.in

index 9ff5a09..5f172e7 100755 (executable)
@@ -23,7 +23,7 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin
 OLD_DB=@CERT_SVC_OLD_DB_PATH@/certs-meta-old.db
 NEW_DB=@CERT_SVC_DB_PATH@/certs-meta.db
 
-MIGRATION_USER_TABLE=migration-user-table.sql
+MIGRATION_USER_TABLE=@CERT_SVC_DB_PATH@/migration-user-table.sql
 
 # backup old database
 mv @CERT_SVC_OLD_DB_PATH@/certs-meta.db $OLD_DB