Dockerfile set the options needed for timemachine #159
This commit is contained in:
parent
512df7ff2b
commit
0cbe425ef6
21
Dockerfile
21
Dockerfile
@ -31,10 +31,27 @@ RUN apk --no-cache --no-progress upgrade && \
|
||||
echo ' disable spoolss = yes' >>$file && \
|
||||
echo ' socket options = TCP_NODELAY' >>$file && \
|
||||
echo ' strict locking = no' >>$file && \
|
||||
echo ' vfs objects = recycle' >>$file && \
|
||||
echo ' vfs objects = acl_xattr fruit recycle' >>$file && \
|
||||
echo ' recycle:keeptree = yes' >>$file && \
|
||||
echo ' recycle:versions = yes' >>$file && \
|
||||
echo ' min protocol = SMB2' >>$file && \
|
||||
echo '' >>$file && \
|
||||
echo ' # Security' >>$file && \
|
||||
echo ' client ipc max protocol = default' >>$file && \
|
||||
echo ' client max protocol = default' >>$file && \
|
||||
echo ' server max protocol = SMB3' >>$file && \
|
||||
echo ' client ipc min protocol = default' >>$file && \
|
||||
echo ' client min protocol = CORE' >>$file && \
|
||||
echo ' server min protocol = SMB2' >>$file && \
|
||||
echo '' >>$file && \
|
||||
echo ' # Time Machine' >>$file && \
|
||||
echo ' durable handles = yes' >>$file && \
|
||||
echo ' kernel oplocks = no' >>$file && \
|
||||
echo ' kernel share modes = no' >>$file && \
|
||||
echo ' posix locking = no' >>$file && \
|
||||
echo ' fruit:aapl = yes' >>$file && \
|
||||
echo ' fruit:advertise_fullsync = true' >>$file && \
|
||||
echo ' fruit:time machine = yes' >>$file && \
|
||||
echo ' smb2 leases = yes' >>$file && \
|
||||
echo '' >>$file && \
|
||||
rm -rf /tmp/*
|
||||
|
||||
|
@ -32,10 +32,27 @@ RUN apk --no-cache --no-progress upgrade && \
|
||||
echo ' disable spoolss = yes' >>$file && \
|
||||
echo ' socket options = TCP_NODELAY' >>$file && \
|
||||
echo ' strict locking = no' >>$file && \
|
||||
echo ' vfs objects = recycle' >>$file && \
|
||||
echo ' vfs objects = acl_xattr fruit recycle' >>$file && \
|
||||
echo ' recycle:keeptree = yes' >>$file && \
|
||||
echo ' recycle:versions = yes' >>$file && \
|
||||
echo ' min protocol = SMB2' >>$file && \
|
||||
echo '' >>$file && \
|
||||
echo ' # Security' >>$file && \
|
||||
echo ' client ipc max protocol = default' >>$file && \
|
||||
echo ' client max protocol = default' >>$file && \
|
||||
echo ' server max protocol = SMB3' >>$file && \
|
||||
echo ' client ipc min protocol = default' >>$file && \
|
||||
echo ' client min protocol = CORE' >>$file && \
|
||||
echo ' server min protocol = SMB2' >>$file && \
|
||||
echo '' >>$file && \
|
||||
echo ' # Time Machine' >>$file && \
|
||||
echo ' durable handles = yes' >>$file && \
|
||||
echo ' kernel oplocks = no' >>$file && \
|
||||
echo ' kernel share modes = no' >>$file && \
|
||||
echo ' posix locking = no' >>$file && \
|
||||
echo ' fruit:aapl = yes' >>$file && \
|
||||
echo ' fruit:advertise_fullsync = true' >>$file && \
|
||||
echo ' fruit:time machine = yes' >>$file && \
|
||||
echo ' smb2 leases = yes' >>$file && \
|
||||
echo '' >>$file && \
|
||||
rm -rf /tmp/*
|
||||
RUN ["cross-build-end"]
|
||||
|
@ -32,10 +32,27 @@ RUN apk --no-cache --no-progress upgrade && \
|
||||
echo ' disable spoolss = yes' >>$file && \
|
||||
echo ' socket options = TCP_NODELAY' >>$file && \
|
||||
echo ' strict locking = no' >>$file && \
|
||||
echo ' vfs objects = recycle' >>$file && \
|
||||
echo ' vfs objects = acl_xattr fruit recycle' >>$file && \
|
||||
echo ' recycle:keeptree = yes' >>$file && \
|
||||
echo ' recycle:versions = yes' >>$file && \
|
||||
echo ' min protocol = SMB2' >>$file && \
|
||||
echo '' >>$file && \
|
||||
echo ' # Security' >>$file && \
|
||||
echo ' client ipc max protocol = default' >>$file && \
|
||||
echo ' client max protocol = default' >>$file && \
|
||||
echo ' server max protocol = SMB3' >>$file && \
|
||||
echo ' client ipc min protocol = default' >>$file && \
|
||||
echo ' client min protocol = CORE' >>$file && \
|
||||
echo ' server min protocol = SMB2' >>$file && \
|
||||
echo '' >>$file && \
|
||||
echo ' # Time Machine' >>$file && \
|
||||
echo ' durable handles = yes' >>$file && \
|
||||
echo ' kernel oplocks = no' >>$file && \
|
||||
echo ' kernel share modes = no' >>$file && \
|
||||
echo ' posix locking = no' >>$file && \
|
||||
echo ' fruit:aapl = yes' >>$file && \
|
||||
echo ' fruit:advertise_fullsync = true' >>$file && \
|
||||
echo ' fruit:time machine = yes' >>$file && \
|
||||
echo ' smb2 leases = yes' >>$file && \
|
||||
echo '' >>$file && \
|
||||
rm -rf /tmp/*
|
||||
RUN ["cross-build-end"]
|
||||
|
14
_etc_avahi_services_samba.service
Normal file
14
_etc_avahi_services_samba.service
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" standalone='no'?>
|
||||
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
||||
<service-group>
|
||||
<name replace-wildcards="yes">%h</name>
|
||||
<service>
|
||||
<type>_adisk._tcp</type>
|
||||
<txt-record>sys=waMa=0,adVF=0x100</txt-record>
|
||||
<txt-record>dk0=adVN=Time Capsule,adVF=0x82</txt-record>
|
||||
</service>
|
||||
<service>
|
||||
<type>_smb._tcp</type>
|
||||
<port>445</port>
|
||||
</service>
|
||||
</service-group>
|
Loading…
Reference in New Issue
Block a user