diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-10-06 13:01:32 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-10-06 13:01:54 +0200 |
commit | d89d6c6ce749f0d7dd89e3f6fabe2772f01b8b41 (patch) | |
tree | f0923de202083d931ce433c47a4f912a8ebc3e5c /src/main.c | |
parent | 7500700777fa9b66d3bff94c6a0846d7ffdb2365 (diff) |
#1004 set default path to repository
This is /opt/opengnsys/images if not specified.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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[]) { |