mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +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/settings
|
||||||
/var/ipfire/samba/shares
|
/var/ipfire/samba/shares
|
||||||
/var/ipfire/samba/smb.conf
|
/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";
|
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;
|
print FILE <<END;
|
||||||
# Export all printers
|
# Export all printers
|
||||||
[printers]
|
[printers]
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE)
|
|||||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||||
PROG = samba
|
PROG = samba
|
||||||
PAK_VER = 73
|
PAK_VER = 74
|
||||||
|
|
||||||
DEPS = avahi cups libtirpc krb5 perl-Parse-Yapp
|
DEPS = avahi cups libtirpc krb5 perl-Parse-Yapp
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user