INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/upgrade_to_30003.sh DESTINATION /etc/package-manager/updates/)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/data/updates/upgrade_to_30004.sh.in upgrade_to_30004.sh $ONLY)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/upgrade_to_30004.sh DESTINATION /etc/package-manager/updates/)
-CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/data/updates/upgrade_to_30005.sh.in upgrade_to_30005.sh $ONLY)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/upgrade_to_30005.sh DESTINATION /etc/package-manager/updates/)
+++ /dev/null
-#!/bin/sh
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-source /etc/tizen-platform.conf
-
-PARSER_DB_NAME=.pkgmgr_parser.db
-CERT_DB_NAME=.pkgmgr_cert.db
-PARSER_DB_PATH=$TZ_SYS_DB/$PARSER_DB_NAME
-CERT_DB_PATH=$TZ_SYS_DB/$CERT_DB_NAME
-
-function migrate_db() {
- local dbpath=$1
- echo -e "PRAGMA journal_mode=WAL;" | sqlite3 $dbpath
- echo "PRAGMA user_version=30005;" | sqlite3 $dbpath
-
- touch "$dbpath-shm"
- chown app_fw:app_fw "$dbpath-shm"
- chsmack -a User::Home "$dbpath-shm"
- touch "$dbpath-wal"
- chown app_fw:app_fw "$dbpath-wal"
- chsmack -a User::Home "$dbpath-wal"
-}
-
-function migrate_user_db() {
- #get each user db path and call migrate_parser_db for each of it
-
- find $TZ_SYS_DB/user -name $PARSER_DB_NAME | while read DBPATH
- do
- migrate_db $DBPATH
- done
-}
-
-migrate_db $PARSER_DB_PATH
-migrate_user_db
-migrate_db $CERT_DB_PATH
\ No newline at end of file
%attr(0700,root,root) /etc/package-manager/updates/upgrade_to_30002.sh
%attr(0700,root,root) /etc/package-manager/updates/upgrade_to_30003.sh
%attr(0700,root,root) /etc/package-manager/updates/upgrade_to_30004.sh
-%attr(0700,root,root) /etc/package-manager/updates/upgrade_to_30005.sh
%attr(0700,root,root) /usr/share/upgrade/scripts/701.app2sd.patch.sh
%attr(0700,root,root) %{_sysconfdir}/opt/upgrade/pkgmgr.patch.sh
%attr(0700,root,root) /usr/share/fixed_multiuser/scripts/pkgmgr-clear-skel.sh