summaryrefslogtreecommitdiffstats
path: root/src/rest.c
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-12-12 15:57:47 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-12-12 16:05:55 +0100
commit5e21716afba461a4debae8f99f0e6e967766bb28 (patch)
treee255c3b0783d61f3586922d6411a335b5b9495cd /src/rest.c
parent6a63218f85d80919c8bab87141f9f4c9c3acdfdf (diff)
cfg: add samba configuration and use it in ogrelive templatev1.2.5-28
add samba credentials to ogserver.json "samba" : { "user" : "og", "pass" : "test" } and use it in ogrelive template.
Diffstat (limited to 'src/rest.c')
-rw-r--r--src/rest.c4
1 files changed, 2 insertions, 2 deletions
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__);