Koozali.org: home of the SME Server

modified smb.conf template - gone after signal-event upgrade

Offline SchulzStefan

  • *
  • 620
  • +0/-0
modified smb.conf template - gone after signal-event upgrade
« 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
And then one day you find ten years have got behind you.

Time, 1973
(Mason, Waters, Wright, Gilmour)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: modified smb.conf template - gone after signal-event upg
« Reply #1 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, 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
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline SchulzStefan

  • *
  • 620
  • +0/-0
modified smb.conf template - gone after signal-event upgrade
« Reply #2 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.
And then one day you find ten years have got behind you.

Time, 1973
(Mason, Waters, Wright, Gilmour)