Fix checkList bug on partial validate
[platform/core/security/cert-svc.git] / etc / cert_svc_create_clean_store_db.sh
1 #!/bin/sh
2 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 #
4 #    Licensed under the Apache License, Version 2.0 (the "License");
5 #    you may not use this file except in compliance with the License.
6 #    You may obtain a copy of the License at
7 #
8 #        http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #    Unless required by applicable law or agreed to in writing, software
11 #    distributed under the License is distributed on an "AS IS" BASIS,
12 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #    See the License for the specific language governing permissions and
14 #    limitations under the License.
15 #
16 INIT_SQL=$1
17 DB_PATH=$2
18
19 sqlite3 $DB_PATH "PRAGMA journal_mode = PERSIST;"
20 sqlite3 $DB_PATH ".read $INIT_SQL"
21
22 touch $DB_PATH-journal