==================================================================
  Please DO NOT REPLY to this mail or send email to the developers
  about this bug. Please follow-up to Bugzilla using this link:
    https://bugs.contribs.org/show_bug.cgi?id=9298

  Have you checked the Frequently Asked Questions (FAQ)?
    http://wiki.contribs.org/SME_Server:Documentation:FAQ

  Please also take the time to read the following useful guide:
    http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================

--- Comment #2 from Nicola Tiana <[email protected]> ---
It seems that the only problem is that the "include" statement is put inside
the [global] section of smb.conf (a sort of nesting). Addendum: it concerns
both 32/64 and 8.2/9.1 environments.

I manually moved the include statement at the end of the file and it works fine
but after a few the SMB .conf is written again in the inconsistent way.

This is the content of the "included" file:

[amgm-job]
path = /Nfs-Affa/Affa-backup/amgm-job
comment = Affa archive: Salvataggio Studio Satta Neirotti
valid users = admin,studio
force user = root
read only = yes
writable = no
veto files =
/.amgm-job-setup.ini/,/.doneDates/,/.AFFA3-REPORT/,/.AFFA-REPORT/.AFFA-TRASH/

In Affa2 this was managed through a template fragment; this is an example:

/etc/e-smith/templates/etc/smb.conf/91affa

# Affa archives
{
# vim: syntax=perl

use esmith::ConfigDB;
use esmith::DB::db;

my $affa = esmith::DB::db->open("/home/e-smith/db/affa");
my %all = $affa->as_hash();

my $config = esmith::ConfigDB->open or die "Error: Couldn't open config db.";
my $LocalIP=$config->get("LocalIP")->value;
my $SystemName=$config->get("SystemName")->value;
my $DomainName=$config->get("DomainName")->value;
my $ServerBasename="AFFA.$SystemName.$DomainName-$LocalIP";

$OUT="\n";
foreach my $job( reverse sort keys %all )
        {
        next if $job eq $ServerBasename;
        my $v=$all{$job};
        next if (not defined $v->{'RootDir'}) or (($v->{'SambaShare'}||'') eq
'no');
        next if $v->{'type'} ne 'job';
        $OUT .= "[Affa-Job-$job]\n";
        $OUT .= "path = $v->{'RootDir'}/$job\n";
        $OUT .= "valid users = admin\n";
        $OUT .= "force user = root\n";
        $OUT .= "read only = yes\n";
        $OUT .= "writable = no\n";
        $OUT .= "veto files = /.AFFA-REPORT/\n";
        $OUT .= "\n";
        }
}

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to