The following changes were made:
* Split off separate glibc-dev * Added bash and dash as dependencies (needed for some scripts apparently) * Removed ld.so.cache * Generate ld.so.cache in usher * usher now uses /bin/sh * Removed TARGET from usher
This commit is contained in:
12
SNAP/usher
12
SNAP/usher
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
@@ -7,13 +7,15 @@ case $1 in
|
||||
exit 0
|
||||
;;
|
||||
postinst)
|
||||
if [ ! -f ${TARGET}/etc/ld.so.conf ]; then
|
||||
cp ${TARGET}/usr/share/glibc/ld.so.conf ${TARGET}/etc/ld.so.conf
|
||||
if [ ! -f /etc/ld.so.conf ]; then
|
||||
cp /usr/share/glibc/ld.so.conf /etc/ld.so.conf
|
||||
fi
|
||||
|
||||
if [ ! -f ${TARGET}/etc/nsswitch.conf ]; then
|
||||
cp ${TARGET}/usr/share/glibc/nsswitch.conf ${TARGET}/etc/nsswitch.conf
|
||||
if [ ! -f /etc/nsswitch.conf ]; then
|
||||
cp /usr/share/glibc/nsswitch.conf /etc/nsswitch.conf
|
||||
fi
|
||||
|
||||
ldconfig
|
||||
;;
|
||||
prerm)
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user