diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-06-07 13:49:43 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-06-07 13:49:43 +0200 |
commit | 32abe380c19cefbbd50d16e6b295f3fdd9aafd0c (patch) | |
tree | 91a111dcb46fdb85f218bd13a8953254c199aa1c /sbin/itzks-systems.do_preseed | |
parent | f6ad14a48db0dec0c289bb21cef32d5889e96d5e (diff) | |
download | itzks-systems-32abe380c19cefbbd50d16e6b295f3fdd9aafd0c.tar.gz itzks-systems-32abe380c19cefbbd50d16e6b295f3fdd9aafd0c.tar.bz2 itzks-systems-32abe380c19cefbbd50d16e6b295f3fdd9aafd0c.zip |
itzks-systems.do_preseed: Improve output if dpkg-reconfigure fails due to missing package.
Diffstat (limited to 'sbin/itzks-systems.do_preseed')
-rwxr-xr-x | sbin/itzks-systems.do_preseed | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/itzks-systems.do_preseed b/sbin/itzks-systems.do_preseed index 10ce65d..8394386 100755 --- a/sbin/itzks-systems.do_preseed +++ b/sbin/itzks-systems.do_preseed @@ -37,5 +37,7 @@ do_preseed ocsinventory-agent ocsinventory-agent/method select http do_preseed ocsinventory-agent ocsinventory-agent/server string inventory.it-zukunft-schule.de echo -n "Silently running dpkg-reconfigure on package ocsinventory-agent ... " -dpkg -l ocsinventory-agent 1>/dev/null 2>/dev/null && dpkg-reconfigure -pcritical ocsinventory-agent && echo "DONE." || echo "FAILED!!!" +dpkg -l ocsinventory-agent 1>/dev/null 2>/dev/null && { + dpkg-reconfigure -pcritical ocsinventory-agent && echo "DONE." || echo "FAILED!!!" +} || echo "NEEDS INSTALL." echo |