Make modest CUD script regenerate the NSS settings for maemosec
[modest] / src / hildon2 / modest-clean.sh
index 09a022d..66817b9 100755 (executable)
@@ -1,5 +1,17 @@
 #!/bin/sh
 
+# First we kill Modest to make sure that, when we remove
+# all the data, modest won't write again
+PIDS=`pidof modest` && kill -15 $PIDS
+
+# Removing modest user data folder
 rm -rf /home/user/.modest
 
+# Restore the security modules settings
+if [ -f "/usr/bin/nsscfg" ] ; then
+nsscfg -c /home/user/.modest/cache   -m "Maemosec certificates" -l /usr/lib/libmaemosec_certman.so.0
+fi
+
+
+
 exit 0