The following changes were made:

* Add usher to manage config files
  * nsswitch.conf and ld.so.conf are now managed with usher
This commit is contained in:
2017-06-16 13:55:56 -05:00
parent cdd4db20d5
commit 320820267e
2 changed files with 30 additions and 3 deletions

24
SNAP/usher Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
set -e
case $1 in
preinst)
exit 0
;;
postinst)
if [ ! -f ${TARGET}/etc/ld.so.conf ]; then
cp ${TARGET}/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 /etc/nsswitch.conf
fi
;;
prerm)
exit 0
;;
postrm)
exit 0
;;
esac