From 66169591e7a50482e46b28c888df8141098568cb Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Fri, 3 May 2019 11:47:46 +0900 Subject: [PATCH] fix: [scripts] -qq does not imply -y automatically --- scripts/clean.sh | 8 ++++---- scripts/interfaces.sh | 4 ++-- scripts/users.sh | 1 - 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/scripts/clean.sh b/scripts/clean.sh index 9b4ceea..f144997 100644 --- a/scripts/clean.sh +++ b/scripts/clean.sh @@ -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 diff --git a/scripts/interfaces.sh b/scripts/interfaces.sh index 3f1ddb2..8004923 100644 --- a/scripts/interfaces.sh +++ b/scripts/interfaces.sh @@ -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" diff --git a/scripts/users.sh b/scripts/users.sh index 0700aba..f9012b8 100644 --- a/scripts/users.sh +++ b/scripts/users.sh @@ -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 -