Commit a3050b2b authored by Marvin's avatar Marvin Committed by GitHub

enable Apples SMB2+ extentions if there is a fruit: in config

parent 9dbe1f07
...@@ -53,23 +53,13 @@ EOF ...@@ -53,23 +53,13 @@ EOF
## ##
# Apple's SMB2+ extension timemachine support activated # Apple's SMB2+ extension timemachine support activated
## ##
if [ ! -z ${SAMBA_CONF_ENABLE_TIMEMACHINE+x} ] if env | grep 'SAMBA_VOLUME_CONFIG_' | grep 'fruit:' 2> /dev/null >/dev/null
then then
echo ">> SAMBA CONFIG: \$SAMBA_CONF_ENABLE_TIMEMACHINE is set, enabling Apple's SMB2+ & timemachine" echo ">> SAMBA CONFIG: enabling Apple's SMB2+ extentions"
cat >> /etc/smb.conf <<EOF cat >> /etc/smb.conf <<EOF
# Apple's SMB2+ & timemachine
fruit:aapl = yes fruit:aapl = yes
fruit:time machine = yes
EOF 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 fi
## ##
......
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