From 93b00cb47a1f32e388208efed2b5d8c1dabdee90 Mon Sep 17 00:00:00 2001 From: t3chn0m4g3 Date: Sun, 23 Oct 2016 13:38:44 +0200 Subject: [PATCH] tweaking --- installer/install.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/installer/install.sh b/installer/install.sh index 6716a083..590e7fcb 100755 --- a/installer/install.sh +++ b/installer/install.sh @@ -48,12 +48,17 @@ exec > >(tee "install.log") fuECHO "### Removing link to NGINX default website." rm /etc/nginx/sites-enabled/default +# Let's wait a few seconds to avoid interference with service messages +fuECHO "### Waiting a few seconds to avoid interference with service messages." +sleep 5 + # Let's ask user for a web user and password -fuECHO "### Please enter a web user name and password." +clear myOK="n" myUSER="tsec" while [ 1 != 2 ] do + fuECHO "### Please enter a web user name and password." read -p "Username (tsec not allowed): " myUSER echo "Your username is: "$myUSER read -p "OK (y/n)? " myOK @@ -226,7 +231,7 @@ apt-get update -y fuECHO "### Installing docker-engine." fuECHO "### You can safely ignore the [FAILED] message," fuECHO "### which is caused by a bug in the docker installer." -apt-get install docker-engine=1.12.0-0~xenial -y || true && sleep 5 +apt-get install docker-engine=1.12.2-0~xenial -y || true && sleep 5 # Let's add proxy settings to docker defaults if [ -f $myPROXYFILEPATH ]; @@ -327,13 +332,13 @@ fuECHO "### Adding cronjobs." tee -a /etc/crontab < /dev/tty2 +#*/2 * * * * root status.sh > /dev/tty2 # Check if containers and services are up -*/5 * * * * root check.sh +*/5 * * * * root check.sh # Example for alerta-cli IP update -#*/5 * * * * root alerta --endpoint-url http://:/api delete --filters resource= && alerta --endpoint-url http://:/api send -e IP -r -E Production -s ok -S T-Pot -t \$(cat /data/elk/logstash/mylocal.ip) --status open +#*/5 * * * * root alerta --endpoint-url http://:/api delete --filters resource= && alerta --endpoint-url http://:/api send -e IP -r -E Production -s ok -S T-Pot -t \$(cat /data/elk/logstash/mylocal.ip) --status open # Check if updated images are available and download them 27 1 * * * root for i in \$(cat /data/images.conf); do docker pull dtagdevsec/\$i:latest1610; done