Skip to content

Commit

Permalink
write message on success, give debugging help
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Nov 1, 2015
1 parent 7989bdf commit 7ea532e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions examples/simple/files/etc/rc.local/FAISERVER
Expand Up @@ -38,13 +38,20 @@ export APTPROXY="http://127.0.0.1:3142"
fai-setup -vB /var/tmp/base.tar.xz 2>&1
if [ $? -eq 0 ]; then
rm /var/tmp/base.tar.xz
else
echo ""
echo "================================================" >/dev/console
echo "ERROR: Setting up the FAI install server FAILED!" >/dev/console
echo "Setting up the FAI server was successful" >/dev/console
echo "================================================" >/dev/console
echo ""
sleep 10
else
echo ""
echo "==================================================" >/dev/console
echo "ERROR: Setting up the FAI install server FAILED!" >/dev/console
echo "Read /var/log/fai/fai-setup.log for more debugging" >/dev/console
echo "==================================================" >/dev/console
echo ""
sleep 10
exit 99
fi

Expand Down

0 comments on commit 7ea532e

Please sign in to comment.