CPack post (un)install

add post (un)install scripts to musrfit cpack. Currently for rpm only. Furthermore a minimal required root version is added. Will need to see if this is sufficient or if more detailed work needs to be added.
This commit is contained in:
2019-01-31 10:45:05 +01:00
parent 98057629e6
commit faffd5bcd6
3 changed files with 32 additions and 2 deletions

13
cmake/post_uninstall.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
echo ">> musrfit post uninstall script started ..."
# test if nemu-x86_64.conf does not exist
if [ -f "/etc/ld.so.conf.d/nemu-x86_64.conf" ]
then
rm -f /etc/ld.so.conf.d/nemu-x86_64.conf
fi
/sbin/ldconfig
echo ">> musrfit post uninstall script done."