Added usher to run depmod after install

This commit is contained in:
2017-05-30 21:51:48 +00:00
parent 0f5acb7a9f
commit 23bea2b413
2 changed files with 23 additions and 1 deletions

22
SNAP/usher Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
set -e
case $1 in
preinst)
exit 0
;;
postinst)
if [[ ${TARGET} ]]; then
chroot ${TARGET} depmod
else
depmod
fi
;;
prerm)
exit 0
;;
postrm)
exit 0
;;
esac