mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2025-04-29 11:20:42 -04:00
add non interactive install
This commit is contained in:
parent
11ca686384
commit
3e067c16d8
1 changed files with 1 additions and 2 deletions
|
@ -18,9 +18,8 @@ const validateRsync = new Promise(async (resolve, reject) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('⚠️ [CLI] Rsync doesn\'t exists. Start installation with "apt-get" \n');
|
console.log('⚠️ [CLI] Rsync doesn\'t exists. Start installation with "apt-get" \n');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
execSync('sudo apt-get update && sudo apt-get --no-install-recommends install rsync', { stdio: 'inherit' });
|
execSync('sudo DEBIAN_FRONTEND=noninteractive apt-get -y update && sudo DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends -y install rsync', { stdio: 'inherit' });
|
||||||
console.log('✅ [CLI] Rsync installed. \n');
|
console.log('✅ [CLI] Rsync installed. \n');
|
||||||
resolve();
|
resolve();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue