Skip to content

Commit 741d231

Browse files
committed
fix: Supprimer les permissions excessives sur les répertoires utilisateurs et ajouter des options de retries pour S3FS
1 parent 46e6eb7 commit 741d231

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

sftp/common/usr/local/bin/create-sftp-user

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ if [ "$S3FS_ENABLED" = "true" ] || [ "$S3FS_ENABLED" = "1" ]; then
110110
mkdir -p "${S3FS_MOUNT}/${user}"
111111
bindmount "${S3FS_MOUNT}/${user}" "/home/${user}"
112112
fi
113-
chown -R "root:root" "/home/$user"
114-
chmod -R 777 "/home/$user"
115113

116114
# Make sure dirs exists
117115
if [ -n "$dir" ]; then

sftp/common/usr/local/bin/docker-sftp-entrypoint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ function setupS3FS() {
172172
S3FS_ARGS="${S3FS_ARGS} -o big_writes"
173173
S3FS_ARGS="${S3FS_ARGS} -o kernel_cache"
174174
S3FS_ARGS="${S3FS_ARGS} -o umask=0022"
175+
S3FS_ARGS="${S3FS_ARGS} -o retries=5"
175176

176177
echo "Start with s3fs ${DEBUG_OPTS} ${S3FS_ARGS} -o passwd_file=${S3FS_AUTHFILE} -o url=${AWS_ENDPOINT} -o endpoint=${AWS_DEFAULT_REGION}"
177178

0 commit comments

Comments
 (0)