Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
docker-samba
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
docker-samba
Commits
a3050b2b
Commit
a3050b2b
authored
Apr 06, 2018
by
Marvin
Committed by
GitHub
Apr 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable Apples SMB2+ extentions if there is a fruit: in config
parent
9dbe1f07
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
scripts/entrypoint.sh
scripts/entrypoint.sh
+2
-12
No files found.
scripts/entrypoint.sh
View file @
a3050b2b
...
...
@@ -53,23 +53,13 @@ EOF
##
# 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
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
# 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
##
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment