mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2024-11-12 13:48:07 +00:00
host rsync
This commit is contained in:
parent
3e2f0214fc
commit
b65c6688d1
@ -4,8 +4,8 @@ const { exec, execSync } = require("child_process");
|
|||||||
const validateRsync = (callback = () => {}) => {
|
const validateRsync = (callback = () => {}) => {
|
||||||
const rsyncCli = commandExists("rsync");
|
const rsyncCli = commandExists("rsync");
|
||||||
if (rsyncCli) {
|
if (rsyncCli) {
|
||||||
|
console.log('⚠️ [CLI] Rsync exists');
|
||||||
const rsyncVersion = execSync("rsync --version", { stdio: 'inherit' });
|
const rsyncVersion = execSync("rsync --version", { stdio: 'inherit' });
|
||||||
console.log('⚠️ [CLI] Rsync exists', rsyncVersion);
|
|
||||||
return callback();
|
return callback();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ ARG SSH_PUB_KEY
|
|||||||
|
|
||||||
RUN apt update
|
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
|
RUN useradd -rm -d /home/test -s /bin/bash -g root -G sudo -u 1000 test
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user