projects
/
framework
/
web
/
wrt-commons.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
upload tizen1.0 source
[framework/web/wrt-commons.git]
/
etc
/
wrt_commons_create_clean_db.sh
diff --git
a/etc/wrt_create_clean_db.sh
b/etc/wrt_commons_create_clean_db.sh
similarity index 89%
rename from
etc/wrt_create_clean_db.sh
rename to
etc/wrt_commons_create_clean_db.sh
index
db450a3
..
b5275a2
100755
(executable)
--- a/
etc/wrt_create_clean_db.sh
+++ b/
etc/wrt_commons_create_clean_db.sh
@@
-13,7
+13,8
@@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# See the License for the specific language governing permissions and
# limitations under the License.
#
-for name in wrt ace vcore
+
+for name in wrt wrt_autosave
do
rm -f /opt/dbspace/.$name.db
rm -f /opt/dbspace/.$name.db-journal
do
rm -f /opt/dbspace/.$name.db
rm -f /opt/dbspace/.$name.db-journal
@@
-22,8
+23,8
@@
do
SQL=".read /usr/share/wrt-engine/"$name"_db.sql"
sqlite3 /opt/dbspace/.$name.db "$SQL"
touch /opt/dbspace/.$name.db-journal
SQL=".read /usr/share/wrt-engine/"$name"_db.sql"
sqlite3 /opt/dbspace/.$name.db "$SQL"
touch /opt/dbspace/.$name.db-journal
- chown
root
:6026 /opt/dbspace/.$name.db
- chown
root
:6026 /opt/dbspace/.$name.db-journal
+ chown
0
:6026 /opt/dbspace/.$name.db
+ chown
0
:6026 /opt/dbspace/.$name.db-journal
chmod 660 /opt/dbspace/.$name.db
chmod 660 /opt/dbspace/.$name.db-journal
done
chmod 660 /opt/dbspace/.$name.db
chmod 660 /opt/dbspace/.$name.db-journal
done