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
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
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
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
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
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
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
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
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
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
fi

18
debian/prerm vendored
View File

@ -2,31 +2,31 @@
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
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
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
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
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
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
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
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
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
fi