diff --git a/do_postinstall.sh b/do_postinstall.sh index 92945b47a78f40c843b6c23ff5881a6df3a46183..70507092edda9f1e94d6c24fbbc94c038434c5f2 100755 --- a/do_postinstall.sh +++ b/do_postinstall.sh @@ -22,12 +22,16 @@ then exit 1 fi + if [ -z "`which lxc-ls`" ] then echo "Please run postinstall on the master" exit 1 fi +logfile="/var/log/`basename $0`_`date +%Y%m%d-%H%M`" +exec &> >(tee -a "$logfile") + DIR=`dirname $0` echo "Updating eole" diff --git a/do_preinstall.sh b/do_preinstall.sh index c6d979ecbdb52d34d4967ee386379720b91f96ab..6eb0c2d3880cad70c833ffe5e8a8858e7da5313c 100755 --- a/do_preinstall.sh +++ b/do_preinstall.sh @@ -28,6 +28,9 @@ then exit 1 fi +logfile="/var/log/`basename $0`_`date +%Y%m%d-%H%M`" +exec &> >(tee -a "$logfile") + echo "Updating eole" Maj-Auto @@ -36,4 +39,6 @@ gen_conteneurs echo "Instanciating server" instance + +echo "Running diagnostic" diagnose -L