Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: SchulzStefan on January 10, 2007, 08:39:28 PM

Title: modified smb.conf template - gone after signal-event upgrade
Post by: SchulzStefan on January 10, 2007, 08:39:28 PM
Hi everyone,

I modified a smb.conf template. Running expand-template /etc/smb.conf and a restart of smb is working out my changes. Things are running as intended.

After signal-event post-upgrade and a reboot the changes are gone. Has anybody an idea?

Thx in advance
Stefan
Title: Re: modified smb.conf template - gone after signal-event upg
Post by: cactus on January 10, 2007, 09:09:19 PM
Quote from: "SchulzStefan"
Hi everyone,

I modified a smb.conf template. Running expand-template /etc/smb.conf and a restart of smb is working out my changes. Things are running as intended.

After signal-event post-upgrade and a reboot the changes are gone. Has anybody an idea?

Thx in advance
Stefan
If I am correct smb.conf is located at /etc/samba/smb.conf, logically it's templates should also be in /etc/e-smith/templates-custom/etc/samba/smb.conf folder, but they are not. Due to some hostorical changes (if I remember correctly from reading in the bugtracker, details should be somewhere there) the templates are located in the /etc/e-smith/templates*/etc/smb.conf folder. Changes should be made in the templates*-custom folder to be kept over updates and events being fired... For more details see the developers guide (http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/devguide.pdf), especially the section about the template system, and perhaps also about the internal configuration database as a lot can be done changing values in there.

To expand the smb.conf file I think you should use the new location of the configuration file:
Code: [Select]
expand-template /etc/samba/smb.conf
Title: modified smb.conf template - gone after signal-event upgrade
Post by: SchulzStefan on January 11, 2007, 09:21:59 AM
Thx for your reply!

I made the template-changes in the /etc/e-smith/templates-custom/etc/samba/smb.conf folder. Yep, there are a bunch of changes you can make in the samba configuration. I'll take as it is at this moment.