From 5e21716afba461a4debae8f99f0e6e967766bb28 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 12 Dec 2024 15:57:47 +0100 Subject: cfg: add samba configuration and use it in ogrelive template add samba credentials to ogserver.json "samba" : { "user" : "og", "pass" : "test" } and use it in ogrelive template. --- src/rest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rest.c') diff --git a/src/rest.c b/src/rest.c index d2ca050..17878b0 100644 --- a/src/rest.c +++ b/src/rest.c @@ -1724,8 +1724,8 @@ static int og_set_client_mode(struct og_dbi *dbi, const char *client_ip, boot_cfg.ogserver = boot_params.server_ip; boot_cfg.ogrepo = boot_params.repo_ip; boot_cfg.ogrelivedir = boot_params.oglivedir; - boot_cfg.username = "opengnsys"; - boot_cfg.passwd = ogconfig.db.pass; + boot_cfg.username = ogconfig.smb.user; + boot_cfg.passwd = ogconfig.smb.pass; if (ogrelive_generate_grub2_file(&boot_cfg, mac) < 0) { syslog(LOG_ERR, "failed to create HTTP boot file (%s:%d)\n", __FILE__, __LINE__); -- cgit v1.2.3-18-g5258