5
migratious_files="libnspr4.so libplc4.so libplds4.so"
7
if [ "$1" = "upgrade" ]; then
8
for f in $migratious_files; do
9
# before new binaries get installed, we move the links
10
if [ -L /usr/lib/$f ]; then
11
rm -f /usr/lib/XNOLDCONFIG_$f.new-migration
12
mv /usr/lib/$f /usr/lib/XNOLDCONFIG_$f.new-migration
14
# before the new links get installed, we move the old binaries
15
if [ -r /usr/lib/$f.0d -a ! -L /usr/lib/$f.0d ]; then
16
rm -f /usr/lib/XNOLDCONFIG_$f.0d.new-migration
17
mv /usr/lib/$f.0d /usr/lib/XNOLDCONFIG_$f.0d.new-migration