mirror of https://git.48k.eu/ogserver
parent
7500700777
commit
d89d6c6ce7
|
@ -174,8 +174,7 @@ int parse_json_config(const char *filename, struct og_server_cfg *cfg)
|
||||||
|
|
||||||
if ((flags & OG_SERVER_CFG_REST) &&
|
if ((flags & OG_SERVER_CFG_REST) &&
|
||||||
(flags & OG_SERVER_CFG_DB) &&
|
(flags & OG_SERVER_CFG_DB) &&
|
||||||
(flags & OG_SERVER_CFG_WOL) &&
|
(flags & OG_SERVER_CFG_WOL)) {
|
||||||
(flags & OG_SERVER_CFG_REPO)) {
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
} else {
|
} else {
|
||||||
syslog(LOG_ERR, "Missing attributes in json file");
|
syslog(LOG_ERR, "Missing attributes in json file");
|
||||||
|
|
|
@ -25,8 +25,13 @@ static struct option og_server_opts[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
#define OG_SERVER_CFG_JSON "/opt/opengnsys/cfg/ogserver.json"
|
#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[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue