Skip to content
Snippets Groups Projects
Verified Commit ec02adc6 authored by David Beniamine's avatar David Beniamine
Browse files

Log pre / post install

parent 13b52251
No related branches found
No related tags found
No related merge requests found
...@@ -22,12 +22,16 @@ then ...@@ -22,12 +22,16 @@ then
exit 1 exit 1
fi fi
if [ -z "`which lxc-ls`" ] if [ -z "`which lxc-ls`" ]
then then
echo "Please run postinstall on the master" echo "Please run postinstall on the master"
exit 1 exit 1
fi fi
logfile="/var/log/`basename $0`_`date +%Y%m%d-%H%M`"
exec &> >(tee -a "$logfile")
DIR=`dirname $0` DIR=`dirname $0`
echo "Updating eole" echo "Updating eole"
......
...@@ -28,6 +28,9 @@ then ...@@ -28,6 +28,9 @@ then
exit 1 exit 1
fi fi
logfile="/var/log/`basename $0`_`date +%Y%m%d-%H%M`"
exec &> >(tee -a "$logfile")
echo "Updating eole" echo "Updating eole"
Maj-Auto Maj-Auto
...@@ -36,4 +39,6 @@ gen_conteneurs ...@@ -36,4 +39,6 @@ gen_conteneurs
echo "Instanciating server" echo "Instanciating server"
instance instance
echo "Running diagnostic"
diagnose -L diagnose -L
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment