mirror of https://github.com/MISP/misp-packer
parent
66bb9f7cfe
commit
0d329f766e
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue