fix: [scripts] -qq does not imply -y automatically

pull/16/head
Steve Clement 2019-05-03 11:47:46 +09:00
parent 2ccae9ea2c
commit 66169591e7
3 changed files with 6 additions and 7 deletions

View File

@ -1,16 +1,16 @@
#! /usr/bin/env bash
#!/usr/bin/env bash
mv /tmp/issue /etc/issue
mv /tmp/crontab /etc/cron.d/misp
# package
echo "--- autoremove for apt ---"
apt-get autoremove -qq > /dev/null 2>&1
apt autoremove -qqy
echo "--- Cleaning packages"
apt-get clean -qq > /dev/null 2>&1
apt clean -qqy
apt-get install mailutils -qq > /dev/null 2>&1
apt install mailutils -qqy
echo "--- Testing Instance ---"
cd /var/www/MISP/PyMISP

View File

@ -11,8 +11,8 @@ echo "--- Using old style name (ethX) for interfaces"
sed -r 's/^(GRUB_CMDLINE_LINUX=).*/\1\"net\.ifnames=0\ biosdevname=0\"/' /etc/default/grub | sudo tee /etc/default/grub > /dev/null
# install ifupdown since ubuntu 18.04
sudo apt-get update
sudo apt-get install -y ifupdown
sudo apt update
sudo apt install ifupdown -qqy
# enable eth0
echo "--- Configuring eth0"

View File

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