Make modest CUD script regenerate the NSS settings for maemosec
authorJose Dapena Paz <jdapena@igalia.com>
Wed, 2 Sep 2009 08:22:46 +0000 (10:22 +0200)
committerJose Dapena Paz <jdapena@igalia.com>
Wed, 2 Sep 2009 08:38:45 +0000 (10:38 +0200)
src/hildon2/modest-clean.sh

index 0d3cf79..66817b9 100755 (executable)
@@ -7,4 +7,11 @@ 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