Make modest CUD script regenerate the NSS settings for maemosec
[modest] / src / hildon2 / modest-clean.sh
1 #!/bin/sh
2
3 # First we kill Modest to make sure that, when we remove
4 # all the data, modest won't write again
5 PIDS=`pidof modest` && kill -15 $PIDS
6
7 # Removing modest user data folder
8 rm -rf /home/user/.modest
9
10 # Restore the security modules settings
11 if [ -f "/usr/bin/nsscfg" ] ; then
12 nsscfg -c /home/user/.modest/cache   -m "Maemosec certificates" -l /usr/lib/libmaemosec_certman.so.0
13 fi
14
15
16
17 exit 0