File debian.postinst of Package zoom
#!/bin/bash
update-mime-database /usr/share/mime
if [ -x "/usr/bin/update-desktop-database" ]; then
update-desktop-database
fi
echo "killing Zoom if it is running..."
killall zoom 2>/dev/null
# Users on the system
USERS=$(awk -F':' '{ print $1 }' /etc/passwd)
# echo USERS=$USERS
for user in $USERS; do
# In zoom version 5.17.5 an issue was detected that may reoccur in subsequent releases
# due to mismatch in user configuration files. Those files need to be removed.
if [ -d "/home/$user/.zoom" ]; then
rm -rf /home/$user/.zoom
fi
if [ -d "/home/$user/.cache" ]; then
rm -rf /home/$user/.cache
fi
if [ -d "/home/$user/.config" ]; then
rm -f /home/$user/.config/zoom*
fi
done
exit 0