From d89d6c6ce749f0d7dd89e3f6fabe2772f01b8b41 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 6 Oct 2020 13:01:32 +0200 Subject: #1004 set default path to repository This is /opt/opengnsys/images if not specified. --- src/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 38494a7..9fe13ad 100644 --- a/src/main.c +++ b/src/main.c @@ -25,8 +25,13 @@ static struct option og_server_opts[] = { }; #define OG_SERVER_CFG_JSON "/opt/opengnsys/cfg/ogserver.json" +#define OG_SERVER_REPO_PATH "/opt/opengnsys/images" -struct og_server_cfg cfg; +struct og_server_cfg cfg = { + .repo = { + .dir = OG_SERVER_REPO_PATH, + }, +}; int main(int argc, char *argv[]) { -- cgit v1.2.3-18-g5258