From b65c6688d14b049511d8cfd8bbd5ed0c1c2e0fe2 Mon Sep 17 00:00:00 2001 From: Dragan Filipovic Date: Sat, 31 Dec 2022 10:14:04 +0100 Subject: [PATCH] host rsync --- src/rsyncCli.js | 2 +- test/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rsyncCli.js b/src/rsyncCli.js index ef7e8f7..91397e6 100644 --- a/src/rsyncCli.js +++ b/src/rsyncCli.js @@ -4,8 +4,8 @@ const { exec, execSync } = require("child_process"); const validateRsync = (callback = () => {}) => { const rsyncCli = commandExists("rsync"); if (rsyncCli) { + console.log('⚠️ [CLI] Rsync exists'); const rsyncVersion = execSync("rsync --version", { stdio: 'inherit' }); - console.log('⚠️ [CLI] Rsync exists', rsyncVersion); return callback(); } diff --git a/test/Dockerfile b/test/Dockerfile index e9a9df4..39344ee 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -4,7 +4,7 @@ ARG SSH_PUB_KEY RUN apt update -RUN apt install openssh-server sudo -y +RUN apt install openssh-server rsync sudo -y RUN useradd -rm -d /home/test -s /bin/bash -g root -G sudo -u 1000 test