Commit 6d189e47 authored by Marvin's avatar Marvin Committed by GitHub

Merge pull request #14 from ServerContainers/4.8.0

4.8.0
parents 17bfdcf9 9dbe1f07
FROM debian:jessie
FROM debian:stretch
RUN export samba_version=4.7.6 \
RUN export samba_version=4.8.0 \
&& export DEBIAN_FRONTEND=noninteractive \
\
&& apt-get -q -y update \
......
# samba
samba - freshly complied from official stable releases on debian:jessie
samba - freshly complied from official stable releases on debian:stretch
# Source Code
Check the following link for a new version: https://download.samba.org/pub/samba/stable/
......@@ -25,6 +25,14 @@ to restrict access of volumes you can add the following to your samba volume con
* __SAMBA\_CONF\_MAP_TO_GUEST__
* default: _Bad User_
* __SAMBA\_CONF\_ENABLE\_TIMEMACHINE__
* default not set - if set Apple's SMB2+ extension is enabled and timemachine support activated
* __SAMBA\_CONF\_TIMEMACHINE\_MAX\_SIZE__
* IMPORTANT! This is the global setting you might want to add this to the share using raw samba config (https://www.samba.org/samba/docs/current/man-html/vfs_fruit.8.html)
* default not set - if set it limits global disk size and preventing Time Machine from using the whole real disk space for backup
* format: `SIZE [K|M|G|T|P]`
* __SAMBA\_CONF\_ENABLE\_PASSWORD\_SYNC__
* default not set - if set password sync is enabled
......
......@@ -9,7 +9,7 @@ services:
ACCOUNT_alice: alipass
ACCOUNT_bob: bobpass
SAMBA_VOLUME_CONFIG_aliceonly: "[Alice Share]; path=/shares/alice; valid users = alice; guest ok = no; read only = no; browseable = no"
SAMBA_VOLUME_CONFIG_bobstm: "[TimeCapsule Bob]; path=/shares/timemachine; valid users = bob; guest ok = no; read only = no; browseable = yes"
SAMBA_VOLUME_CONFIG_bobstm: "[TimeCapsule Bob]; path=/shares/timemachine; valid users = bob; guest ok = no; read only = no; browseable = yes; fruit:time machine = yes; fruit:time machine max size = 500G;"
volumes:
- ./shares/alice:/shares/alice
- ./shares/timemachine:/shares/timemachine
......
......@@ -50,6 +50,28 @@ cat > /etc/smb.conf <<EOF
EOF
##
# Apple's SMB2+ extension timemachine support activated
##
if [ ! -z ${SAMBA_CONF_ENABLE_TIMEMACHINE+x} ]
then
echo ">> SAMBA CONFIG: \$SAMBA_CONF_ENABLE_TIMEMACHINE is set, enabling Apple's SMB2+ & timemachine"
cat >> /etc/smb.conf <<EOF
# Apple's SMB2+ & timemachine
fruit:aapl = yes
fruit:time machine = yes
EOF
if [ ! -z ${SAMBA_CONF_TIMEMACHINE_MAX_SIZE+x} ]
then
echo ">> SAMBA CONFIG: \$SAMBA_CONF_TIMEMACHINE_MAX_SIZE is set to $SAMBA_CONF_TIMEMACHINE_MAX_SIZE"
cat >> /etc/smb.conf <<EOF
fruit:time machine max size = $SAMBA_CONF_TIMEMACHINE_MAX_SIZE
EOF
fi
fi
##
# SAMBA Configuration (enable NTLMv1 passwords/auth)
##
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment