Browse Source

fix: dev: typo !minor

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
upd-docker
Valentin Lab 4 years ago
parent
commit
85eb2f0fa5
  1. 2
      rsync-backup-target/build/Dockerfile
  2. 2
      rsync-backup-target/build/entrypoint.sh

2
rsync-backup-target/build/Dockerfile

@ -12,7 +12,7 @@ RUN mkdir -p /var/lib/rsync /var/log/rsync && \
adduser -S rsync -h /var/lib/rsync -G rsync && \
chown rsync:rsync /var/lib/rsync /var/log/rsync
## Without this, account is concidered locked by SSH
## Without this, account is considered locked by SSH
RUN sed -ri 's/^rsync:!:/rsync:*NP*:/g' /etc/shadow
## Withouth this, force-command will not run

2
rsync-backup-target/build/entrypoint.sh

@ -26,7 +26,7 @@ if ! egrep '^[^:]+:x:101:101:' /etc/passwd; then
echo "Error: couldn't create user $user or chown '$user_dir'." >&2
exit 1
}
## Without this, account is concidered locked by SSH
## Without this, account is considered locked by SSH
sed -ri "s/^$user:\!:/$user:*NP*:/g" /etc/shadow
## Withouth this, force-command will not run

Loading…
Cancel
Save