« Reply #6 on: March 03, 2008, 10:21:32 PM »
Changed "Recycle Bin" in ".Recycle Bin". You can make the same for 10recyclebin file in /etc/e-smith/templates/etc/smb.conf/ibays for ibays.
Working both fine
{
$OUT = "";
return unless (($smb{'RecycleBin'} || 'disabled') eq 'enabled');
$vfs->{recycle}->{versions} = ($smb{'KeepVersions'} || 'disabled') eq 'enab
$vfs->{recycle}->{repository} = ".Recycle Bin";
$vfs->{recycle}->{keeptree} = "True";
$vfs->{recycle}->{touch} = "True";
$vfs->{recycle}->{exclude} = "*.tmp|*.temp|*.o|*.obj|~\$*";
$vfs->{recycle}->{exclude_dir} = "/tmp|/temp|/cache";
}
That is the wrong procedure!SME Server configuration files are templated, changes should never be made in the /etc/e-smith/templates/ tree, instead make a copy of the template fragment and copy it to the same tree layout in the /etc/e-smith/templates-custom/ tree. This way changes will be kept over updates/upgrades and backup/restore actions, which above will no do.
Above should be achieved like this:
- Create the proper folder structure:
mkdir -p /etc/e-smith/templates-custom/etc/smb.conf/ibays
- Copy the template fragment to the template-custom tree
cp /etc/e-smith/templates/etc/smb.conf/ibays/10recyclebin /etc/e-smith/templates-custom/etc/smb.conf/ibays
- Use any editor to make your changes in the copied file, I prefer nano
nano -w /etc/e-smith/templates-custom/etc/smb.conf/ibays/10recyclebin
Save your changes after making modifications.
- Now let the server take the necessarry actions to have the changes reflected for the ibays
signal-event ibay-modify ibayname
Replace ibayname with the name of your ibay, if you need to do many, you might be better of doing
signal-event post-upgrade; signal-event reboot
« Last Edit: March 04, 2008, 10:29:14 AM by cactus »

Logged
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)