3 SEARCHPKG="org.tizen.smartsearch"
6 if [ ! -f /opt/apps/$SEARCHPKG/data/.search.db ]
8 sqlite3 /opt/apps/$SEARCHPKG/data/.search.db 'PRAGMA journal_mode = PERSIST;
9 CREATE TABLE IF NOT EXISTS search_history (category int, keyword text not null, date TEXT, UNIQUE(category, keyword));'
14 if [ ${USER} == "root" ]
16 chown -R 5000:5000 /opt/apps/$SEARCHPKG/data
17 chown -R 5000:5000 /opt/apps/$SEARCHPKG/data/.search.db
18 chown -R 5000:5000 /opt/apps/$SEARCHPKG/data/.search.db-journal
21 chmod 660 /opt/apps/$SEARCHPKG/data/.search.db
22 chmod 660 /opt/apps/$SEARCHPKG/data/.search.db-journal
24 #set default vconf key value
25 vconftool set -t int db/smartsearch/category 0 -u 5000 -g 5000
26 vconftool set -t string db/smartsearch/keyword '' -u 5000 -g 5000