From 44f295dae686652869047e6d87da2d4a42b647d8 Mon Sep 17 00:00:00 2001 From: Moritz Date: Mon, 10 Jan 2022 23:38:56 +0100 Subject: [PATCH] Wrong command... --- files/entrypoint | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/entrypoint b/files/entrypoint index 4ed6206..c3d68d8 100755 --- a/files/entrypoint +++ b/files/entrypoint @@ -53,10 +53,10 @@ if [ ! -f "$userConfFinalPath" ]; then done fi - if [ -n "$READONLY" ]; then + if [ -n "$READONLY" ]; then if [ "$READONLY" = "true" ]; then - sed 's/Subsystem sftp internal-sftp/Subsystem sftp internal-sftp -R/' "/etc/ssh/sshd_config" | tee "/etc/ssh/sshd_config" - fi + sed 's/ForceCommand internal-sftp/ForceCommand internal-sftp -R/' "/etc/ssh/sshd_config" | tee "/etc/ssh/sshd_config" + fi fi # Check that we have users in config