diff options
Diffstat (limited to 'data/libssl1.1.1/_metadata/preinst')
-rwxr-xr-x | data/libssl1.1.1/_metadata/preinst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/data/libssl1.1.1/_metadata/preinst b/data/libssl1.1.1/_metadata/preinst new file mode 100755 index 000000000..b99249de8 --- /dev/null +++ b/data/libssl1.1.1/_metadata/preinst @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ upgrade != "$1" ] || dpkg --compare-versions "$2" le "1.1.1c-1"; then + dpkg-divert --package libssl1.1.1 --add --rename \ + --divert /usr/lib/libcrypto.1.1.dylib.old /usr/lib/libcrypto.1.1.dylib + dpkg-divert --package libssl1.1.1 --add --rename \ + --divert /usr/lib/libssl.1.1.dylib.old /usr/lib/libssl.1.1.dylib +fi |