mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
samba: Add support for custom configuration changes
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -4,3 +4,4 @@
|
||||
/var/ipfire/samba/settings
|
||||
/var/ipfire/samba/shares
|
||||
/var/ipfire/samba/smb.conf
|
||||
/var/ipfire/samba/smb.conf.local
|
||||
|
||||
@@ -835,6 +835,18 @@ if ($sambasettings{'ENCRYPTION'} =~ m/(desired|required)/) {
|
||||
print FILE "smb encrypt = $1\n";
|
||||
}
|
||||
|
||||
# Include smb.conf.local
|
||||
if (-e "${General::swroot}/samba/smb.conf.local") {
|
||||
open(LOCAL, "<${General::swroot}/samba/smb.conf.local");
|
||||
|
||||
# Copy content line by line
|
||||
while (<LOCAL>) {
|
||||
print FILE $_;
|
||||
}
|
||||
|
||||
close(LOCAL);
|
||||
}
|
||||
|
||||
print FILE <<END;
|
||||
# Export all printers
|
||||
[printers]
|
||||
|
||||
Reference in New Issue
Block a user