Remove old update script 65/148565/1
authorSunmin Lee <sunm.lee@samsung.com>
Fri, 8 Sep 2017 06:36:00 +0000 (15:36 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Fri, 8 Sep 2017 06:36:26 +0000 (15:36 +0900)
RW update script for Tizen 2.4 (to 3.0) is not necessary in Tizen 4.0.
Remove this file to avoid being executed during Tizen 4.0 update.

Change-Id: I283bebfb8f8a6f3eb92c08c4955ea09fcbec9ca8

packaging/libshortcut.spec
scripts/507.shortcut_upgrade.sh [deleted file]

index bcd6bed..270161c 100755 (executable)
@@ -22,8 +22,6 @@ BuildRequires: pkgconfig(aul)
 BuildRequires: pkgconfig(libtzplatform-config)
 BuildRequires: pkgconfig(capi-system-info)
 
-%define upgrade_script_path /usr/share/upgrade/scripts
-
 %description
 [Shortcut] AddToHome feature supporting library for menu/home screen developers.
 
@@ -54,9 +52,6 @@ rm -rf %{buildroot}
 %make_install
 mkdir -p %{buildroot}%{TZ_SYS_DB}
 
-mkdir -p %{buildroot}%{upgrade_script_path}
-cp -f scripts/507.shortcut_upgrade.sh %{buildroot}%{upgrade_script_path}
-
 %post
 /sbin/ldconfig
 
@@ -73,7 +68,6 @@ fi
 %defattr(-,root,root,-)
 %{_libdir}/libshortcut.so.*
 %{_sysconfdir}/package-manager/parserlib/*
-%{upgrade_script_path}/507.shortcut_upgrade.sh
 
 %files devel
 %manifest %{name}.manifest
diff --git a/scripts/507.shortcut_upgrade.sh b/scripts/507.shortcut_upgrade.sh
deleted file mode 100755 (executable)
index 39c096d..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-#------------------------------------------#
-# shortcut upgrade (2.4 -> 3.0)                   #
-#------------------------------------------#
-
-# Macro
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-DB_DIR=/opt/dbspace
-DB_SHORTCUT=$DB_DIR/.shortcut_service.db
-
-chown app_fw:app_fw $DB_SHORTCUT
-chown app_fw:app_fw $DB_SHORTCUT-journal
-
-chsmack -a System $DB_SHORTCUT
-chsmack -a System $DB_SHORTCUT-journal
-
-chmod 644 $DB_SHORTCUT
-chmod 644 $DB_SHORTCUT-journal
\ No newline at end of file