chg: [json] Added -u for unattended installs

fix: [scripts] Missing "
pull/23/head
Steve Clement 2019-05-09 05:53:36 +02:00
parent 66bb9f7cfe
commit 0d329f766e
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@
"execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -u {{user `ssh_name`}} -E -S bash '{{ .Path }}'", "execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -u {{user `ssh_name`}} -E -S bash '{{ .Path }}'",
"inline": [ "inline": [
"chmod u+x /tmp/INSTALL.sh", "chmod u+x /tmp/INSTALL.sh",
"/tmp/INSTALL.sh -A" "/tmp/INSTALL.sh -A -u"
], ],
"pause_before": "10s" "pause_before": "10s"
}, },

View File

@ -6,6 +6,6 @@
echo "--- Configuring sudo " echo "--- Configuring sudo "
##echo %thehive ALL=NOPASSWD:ALL > /etc/sudoers.d/thehive ##echo %thehive ALL=NOPASSWD:ALL > /etc/sudoers.d/thehive
echo %misp ALL=(ALL:ALL) NOPASSWD:ALL > /etc/sudoers.d/misp echo "%misp ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/misp
##chmod 0440 /etc/sudoers.d/thehive ##chmod 0440 /etc/sudoers.d/thehive
chmod 0440 /etc/sudoers.d/misp chmod 0440 /etc/sudoers.d/misp