Skip to content

Commit

Permalink
Bugfix: fix for missing symlinks on Ubuntu didn't work for 332-bit sy…
Browse files Browse the repository at this point in the history
…stems

Those installs use /usr/lib/i386-linux-gnu as their libs folder
  • Loading branch information
gboudreau committed Sep 30, 2016
1 parent 68f1cb2 commit 994aff9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DEBIAN/postinst
Expand Up @@ -14,6 +14,9 @@ if [ -d /usr/lib/arm-linux-gnueabihf/samba/vfs ]; then
elif [ -d /usr/lib/x86_64-linux-gnu/samba/vfs ]; then
SOURCE_LIBDIR="/usr/lib64" # Makefile will always install Greyhole .so files in /usr/lib64, for x86_64 CPUs. @see Makefile
TARGET_LIBDIR="/usr/lib/x86_64-linux-gnu"
elif [ -d /usr/lib/i386-linux-gnu/samba/vfs ]; then
SOURCE_LIBDIR="/usr/lib"
TARGET_LIBDIR="/usr/lib/i386-linux-gnu"
elif [ "`uname -m`" = "x86_64" ]; then
SOURCE_LIBDIR="/usr/lib64"
TARGET_LIBDIR="/usr/lib64"
Expand All @@ -35,6 +38,9 @@ if [ ! -d ${TARGET_LIBDIR}/samba/vfs/ ]; then
elif [ -d /usr/lib/x86_64-linux-gnu ]; then
SOURCE_LIBDIR="/usr/lib64" # Makefile will always install Greyhole .so files in /usr/lib64, for x86_64 CPUs. @see Makefile
TARGET_LIBDIR="/usr/lib/x86_64-linux-gnu"
elif [ -d /usr/lib/i386-linux-gnu ]; then
SOURCE_LIBDIR="/usr/lib"
TARGET_LIBDIR="/usr/lib/i386-linux-gnu"
else
SOURCE_LIBDIR="/usr/lib"
TARGET_LIBDIR="/usr/lib"
Expand Down

0 comments on commit 994aff9

Please sign in to comment.