You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
267 B

#!/bin/bash
/usr/bin/getent passwd sogo | grep -q '/home/sogo'
if [ $? -eq 0 ]; then
/usr/sbin/usermod -d /var/lib/sogo -m -s /sbin/nologin -c "SOGo daemon" sogo 2>/dev/null
fi
rm -f /var/lib/sogo/GNUstep/Defaults/.GNUstepDefaults
rm -f /etc/cron.d/sogo-alarm