Commit 72b52f36 authored by Per Cederqvist's avatar Per Cederqvist

(parameters): Added "Backup export directory".

(read_configuration): Handle param.backup_dir.
parent 025efe13
/*
* $Id: server-config.c,v 0.69 1999/07/10 22:51:21 ceder Exp $
* $Id: server-config.c,v 0.70 1999/07/24 18:41:40 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -37,7 +37,7 @@
#endif
static const char *
rcsid = "$Id: server-config.c,v 0.69 1999/07/10 22:51:21 ceder Exp $";
rcsid = "$Id: server-config.c,v 0.70 1999/07/24 18:41:40 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -134,6 +134,9 @@ static const struct parameter parameters[] = {
{"Text backup file",
assign_string, unassign_string, 0, 1, "db/lyskomd-texts-backup",
&param.textbackupfile_name},
{"Backup export directory",
assign_string, unassign_string, 0, 1, "exportdb",
&param.backup_dir},
/* Various log files */
......@@ -470,6 +473,7 @@ read_configuration(const char *conf_file)
assert(param.lockfile_name != NULL);
assert(param.textfile_name != NULL);
assert(param.textbackupfile_name != NULL);
assert(param.backup_dir != NULL);
assert(param.statistic_name != NULL);
assert(param.pid_name != NULL);
assert(param.memuse_name != NULL);
......@@ -494,6 +498,7 @@ read_configuration(const char *conf_file)
add_prefix(&param.lockfile_name);
add_prefix(&param.textfile_name);
add_prefix(&param.textbackupfile_name);
add_prefix(&param.backup_dir);
add_prefix(&param.statistic_name);
add_prefix(&param.pid_name);
add_prefix(&param.memuse_name);
......@@ -512,6 +517,7 @@ read_configuration(const char *conf_file)
err |= check_abs_path(&param.lockfile_name);
err |= check_abs_path(&param.textfile_name);
err |= check_abs_path(&param.textbackupfile_name);
err |= check_abs_path(&param.backup_dir);
err |= check_abs_path(&param.statistic_name);
err |= check_abs_path(&param.pid_name);
err |= check_abs_path(&param.memuse_name);
......
Markdown is supported
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