View | Details | Raw Unified | Return to bug 115335
Collapse All | Expand All

(-)Kerberos.ycp (-10 / +10 lines)
Lines 290-302 Link Here
290
        kdc = deletechars (out["stdout"]:"", "\n");
290
        kdc = deletechars (out["stdout"]:"", "\n");
291
    }
291
    }
292
292
293
    if (FileUtils::Exists ("/etc/sysconfig/afs-client"))
293
    if (FileUtils::Exists ("/etc/sysconfig/openafs-client"))
294
    {
294
    {
295
	// read AFS related values
295
	// read AFS related values
296
	afs_cell = (string) SCR::Read (.sysconfig.afs-client.THIS_CELL);
296
	afs_cell = (string) SCR::Read (.sysconfig.openafs-client.THIS_CELL);
297
	afs_server = (string) SCR::Read (.sysconfig.afs-client.THIS_CELL_SERVER_NAME);
297
	afs_server = (string) SCR::Read (.sysconfig.openafs-client.THIS_CELL_SERVER_NAME);
298
	afs_serverip  = (string) SCR::Read (.sysconfig.afs-client.THIS_CELL_SERVER);
298
	afs_serverip  = (string) SCR::Read (.sysconfig.openafs-client.THIS_CELL_SERVER);
299
	regenerate_ci = (string) SCR::Read (.sysconfig.afs-client.REGENERATE_CELL_INFO);
299
	regenerate_ci = (string) SCR::Read (.sysconfig.openafs-client.REGENERATE_CELL_INFO);
300
    }
300
    }
301
301
302
    // propose AFS defaults
302
    // propose AFS defaults
Lines 542-552 Link Here
542
	else
542
	else
543
	    Service::Disable ("afs-client");
543
	    Service::Disable ("afs-client");
544
544
545
	SCR::Write (.sysconfig.afs-client.THIS_CELL, afs_cell);
545
	SCR::Write (.sysconfig.openafs-client.THIS_CELL, afs_cell);
546
	SCR::Write (.sysconfig.afs-client.THIS_CELL_SERVER, afs_serverip);
546
	SCR::Write (.sysconfig.openafs-client.THIS_CELL_SERVER, afs_serverip);
547
	if (use_afs)
547
	if (use_afs)
548
	    regenerate_ci = "yes";
548
	    regenerate_ci = "yes";
549
	SCR::Write (.sysconfig.afs-client.REGENERATE_CELL_INFO, regenerate_ci);
549
	SCR::Write (.sysconfig.openafs-client.REGENERATE_CELL_INFO, regenerate_ci);
550
	afs_server = afs_cell;
550
	afs_server = afs_cell;
551
	// get the name via 'getent hosts ip_addr' call
551
	// get the name via 'getent hosts ip_addr' call
552
	if (use_afs && FileUtils::Exists ("/usr/bin/getent"))
552
	if (use_afs && FileUtils::Exists ("/usr/bin/getent"))
Lines 566-575 Link Here
566
	    else
566
	    else
567
		y2error ("'getent hosts' returned error: %1", out["stderr"]:"");
567
		y2error ("'getent hosts' returned error: %1", out["stderr"]:"");
568
	}
568
	}
569
	SCR::Write (.sysconfig.afs-client.THIS_CELL_SERVER_NAME, afs_server);
569
	SCR::Write (.sysconfig.openafs-client.THIS_CELL_SERVER_NAME, afs_server);
570
570
571
	// force saving before starting service
571
	// force saving before starting service
572
	SCR::Write (.sysconfig.afs-client, nil);
572
	SCR::Write (.sysconfig.openafs-client, nil);
573
573
574
	// stop service
574
	// stop service
575
	if (!Mode::config ())
575
	if (!Mode::config ())

Return to bug 115335