summaryrefslogtreecommitdiff
path: root/debian/mdadm.postinst
diff options
context:
space:
mode:
authormadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-09-13 19:19:06 +0000
committermadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-09-13 19:19:06 +0000
commit2e8c870bd86788473b0f99fd7fddd6a52c62b481 (patch)
treedcb955087d74556d5c2c4835596dd97d0a4e1799 /debian/mdadm.postinst
parentdcb0e08ef7775cac4c5271c4c18e416c8c856efb (diff)
* Correct error related to an unbound variable in postinst.
* Keeping medium urgency.
Diffstat (limited to 'debian/mdadm.postinst')
-rw-r--r--debian/mdadm.postinst4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/mdadm.postinst b/debian/mdadm.postinst
index b94b95cf..0611dbc4 100644
--- a/debian/mdadm.postinst
+++ b/debian/mdadm.postinst
@@ -38,7 +38,7 @@ case "${1:-}" in
ALTCONFIG=/etc/mdadm.conf
MDADM=/sbin/mdadm
- if [ -z "$2" ] && [ -s /etc/mdctl/mdctl.conf ] \
+ if [ -z "${2:-}" ] && [ -s /etc/mdctl/mdctl.conf ] \
&& [ ! -f /etc/mdadm/mdadm.conf ]; then
cp -a /etc/mdctl/mdctl.conf /etc/mdadm/mdadm.conf
fi
@@ -124,7 +124,7 @@ _eof
# changelog). Do this before update-initramfs, which copies udev into
# initrd.
V=2.5.3.git200608202239-1~
- if [ "$1" = "configure" ] && [ -n "${2:-}" ] \
+ if [ "${1:-}" = "configure" ] && [ -n "${2:-}" ] \
&& dpkg --compare-versions $2 ge 2.5.2-10 \
&& dpkg --compare-versions $2 lt $V; then