correct if then

This commit is contained in:
Mario Fetka 2017-04-25 07:42:03 +02:00
parent 0f0f1be96f
commit 078c5e48c3
2 changed files with 18 additions and 18 deletions

18
debian/postinst vendored
View File

@ -2,31 +2,31 @@
set -e set -e
if [ -f "/usr/lib/arcconf/arcconf-2.03" ] if [ -f "/usr/lib/arcconf/arcconf-2.03" ]; then
update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-2.03 203 update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-2.03 203
fi fi
if [ -f "/usr/lib/arcconf/arcconf-2.02" ] if [ -f "/usr/lib/arcconf/arcconf-2.02" ]; then
update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-2.02 202 update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-2.02 202
fi fi
if [ -f "/usr/lib/arcconf/arcconf-2.01" ] if [ -f "/usr/lib/arcconf/arcconf-2.01" ]; then
update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-2.01 201 update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-2.01 201
fi fi
if [ -f "/usr/lib/arcconf/arcconf-2.00" ] if [ -f "/usr/lib/arcconf/arcconf-2.00" ]; then
update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-2.00 200 update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-2.00 200
fi fi
if [ -f "/usr/lib/arcconf/arcconf-1.08" ] if [ -f "/usr/lib/arcconf/arcconf-1.08" ]; then
update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-1.08 108 update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-1.08 108
fi fi
if [ -f "/usr/lib/arcconf/arcconf-1.07" ] if [ -f "/usr/lib/arcconf/arcconf-1.07" ]; then
update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-1.07 107 update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-1.07 107
fi fi
if [ -f "/usr/lib/arcconf/arcconf-1.06" ] if [ -f "/usr/lib/arcconf/arcconf-1.06" ]; then
update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-1.06 106 update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-1.06 106
fi fi
if [ -f "/usr/lib/arcconf/arcconf-1.05" ] if [ -f "/usr/lib/arcconf/arcconf-1.05" ]; then
update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-1.05 105 update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-1.05 105
fi fi
if [ -f "/usr/lib/arcconf/arcconf-1.04" ] if [ -f "/usr/lib/arcconf/arcconf-1.04" ]; then
update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-1.04 104 update-alternatives --install /usr/sbin/arcconf arcconf /usr/lib/arcconf/arcconf-1.04 104
fi fi

18
debian/prerm vendored
View File

@ -2,31 +2,31 @@
set -e set -e
if [ -f "/usr/lib/arcconf/arcconf-2.03" ] if [ -f "/usr/lib/arcconf/arcconf-2.03" ]; then
update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-2.03 update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-2.03
fi fi
if [ -f "/usr/lib/arcconf/arcconf-2.02" ] if [ -f "/usr/lib/arcconf/arcconf-2.02" ]; then
update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-2.02 update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-2.02
fi fi
if [ -f "/usr/lib/arcconf/arcconf-2.01" ] if [ -f "/usr/lib/arcconf/arcconf-2.01" ]; then
update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-2.01 update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-2.01
fi fi
if [ -f "/usr/lib/arcconf/arcconf-2.00" ] if [ -f "/usr/lib/arcconf/arcconf-2.00" ]; then
update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-2.00 update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-2.00
fi fi
if [ -f "/usr/lib/arcconf/arcconf-1.08" ] if [ -f "/usr/lib/arcconf/arcconf-1.08" ]; then
update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-1.08 update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-1.08
fi fi
if [ -f "/usr/lib/arcconf/arcconf-1.07" ] if [ -f "/usr/lib/arcconf/arcconf-1.07" ]; then
update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-1.07 update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-1.07
fi fi
if [ -f "/usr/lib/arcconf/arcconf-1.06" ] if [ -f "/usr/lib/arcconf/arcconf-1.06" ]; then
update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-1.06 update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-1.06
fi fi
if [ -f "/usr/lib/arcconf/arcconf-1.05" ] if [ -f "/usr/lib/arcconf/arcconf-1.05" ]; then
update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-1.05 update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-1.05
fi fi
if [ -f "/usr/lib/arcconf/arcconf-1.04" ] if [ -f "/usr/lib/arcconf/arcconf-1.04" ]; then
update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-1.04 update-alternatives --remove arcconf /usr/lib/arcconf/arcconf-1.04
fi fi