Apply changes of rw-update-macro 11/165911/2 accepted/tizen/4.0/unified/20180110.233135 submit/tizen_4.0/20180105.070507 tizen_4.0.IoT.p2_release
authorSunmin Lee <sunm.lee@samsung.com>
Fri, 5 Jan 2018 00:36:48 +0000 (09:36 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Fri, 5 Jan 2018 00:53:56 +0000 (09:53 +0900)
According to recent patch, update-init.sh is required to be
changed a little.

Change-Id: I7b2a5ab1b6afc5ee3c1e9e41fba827090e9e7f92
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
upgrade/update-init.sh

index 6825aeb37ea850a487d2c3f9ea93655fa76179db..c57f52fcb40e279bcdd8161397e6d1a487e3443b 100755 (executable)
@@ -12,10 +12,10 @@ if [ -f $RW_MACRO ]; then
        get_version_info
 fi
 
-if [ "$NEW_VER" = "4.0" ]; then
+if [ ! "$OLD_VER" = "$NEW_VER" ]; then
        # Restore rpm db
        rm -rf /var/lib/rpm/*
-       restore_backup_file -r /opt/var/lib/rpm
+       restore_backup_file -f /opt/var/lib/rpm
 fi
 
 # Permission Update for shared directories