summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-06-07 13:49:43 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-06-07 13:49:43 +0200
commit32abe380c19cefbbd50d16e6b295f3fdd9aafd0c (patch)
tree91a111dcb46fdb85f218bd13a8953254c199aa1c
parentf6ad14a48db0dec0c289bb21cef32d5889e96d5e (diff)
downloaditzks-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.
-rw-r--r--debian/changelog7
-rwxr-xr-xsbin/itzks-systems.do_preseed4
2 files changed, 10 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 885a816..57018e3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+itzks-systems (2013.06.07.4) UNRELEASED; urgency=low
+
+ * itzks-systems.do_preseed:
+ + Improve output if dpkg-reconfigure fails due to missing package.
+
+ -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Fri, 07 Jun 2013 13:49:12 +0200
+
itzks-systems (2013.06.07.3) squeeze-backports; urgency=low
* itzks-systems.do_preseed:
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