Update file executable_install-program

This commit is contained in:
Brian Zalewski 2023-01-05 06:24:09 +00:00
parent ae673f9696
commit 9239a2c483

View file

@ -619,7 +619,7 @@ async function beforeInstall(packageManager) {
if (unbuffer) { if (unbuffer) {
unbufferPrefix = 'unbuffer' unbufferPrefix = 'unbuffer'
} }
await $`${unbufferPrefix} ansible 127.0.0.1 -vv -b ${process.env.USER} -e '{ ansible_connection: "local", ansible_user: "${process.env.USER}", install_homebrew: False }' -m setup` await $`${unbufferPrefix} ansible 127.0.0.1 -vv -e '{ ansible_connection: "local", ansible_become_user: "${process.env.USER}", ansible_user: "${process.env.USER}", install_homebrew: False }' -m setup`
} else if (packageManager === 'apk') { } else if (packageManager === 'apk') {
await $`sudo apk update` await $`sudo apk update`
} else if (packageManager === 'apt') { } else if (packageManager === 'apt') {
@ -1077,7 +1077,7 @@ async function installPackageList(packageManager, packages) {
unbufferPrefix = 'unbuffer' unbufferPrefix = 'unbuffer'
} }
const verboseMode = process.env.DEBUG_MODE === 'on' ? 'vv' : '' const verboseMode = process.env.DEBUG_MODE === 'on' ? 'vv' : ''
await $`ansible 127.0.0.1 -v${verboseMode} -b ${process.env.USER} -e '{ ansible_connection: "local", ansible_user: "${process.env.USER}", install_homebrew: False }' -m include_role -a name=${pkg}` await $`ansible 127.0.0.1 -v${verboseMode} -e '{ ansible_connection: "local", ansible_become_user: "${process.env.USER}", ansible_user: "${process.env.USER}", install_homebrew: False }' -m include_role -a name=${pkg}`
log('success', 'Install', `${pkg} successfully installed via ${packageManager}`) log('success', 'Install', `${pkg} successfully installed via ${packageManager}`)
} catch (e) { } catch (e) {
log('error', 'Install Failure', `There was an error installing ${pkg} with Ansible`) log('error', 'Install Failure', `There was an error installing ${pkg} with Ansible`)