Commit 530a7008 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(lyskomd_start): Create a fresh database before starting lyskomd.

parent 0c5c8156
......@@ -153,6 +153,16 @@ proc lyskomd_start {} {
global timeout
global expect_active
global expect_always
global srcdir
# Check that we are in in the correct directory before removing
# directories...
set f [open "../lyskomd" "r"]
close $f
system "rm -rf db etc"
system "mkdir db etc"
system "cp $srcdir/../../../db-crypt/db/lyskomd-data db/"
system "cp $srcdir/../../../db-crypt/db/lyskomd-texts db/"
set pid [spawn ../lyskomd -d config/lyskomd-config]
set server_id $spawn_id
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment