https://bugs.koozali.org/show_bug.cgi?id=12144
Jean-Philippe Pialasse <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #1 from Jean-Philippe Pialasse <[email protected]> ---
--file /home/e-smith/db/dovecot/sharedmailbox.db 'attr(0660,root,sharedmailbox)
%config(noreplace)' \
so should exists
however the issue is in createlinks
safe_touch("root/etc/dovecot/sharedmailbox/dict.db");
should be
safe_touch("root/home/e-smith/db/dovecot/sharedmailbox/dict.db");
/usr/bin/plague-client build smeserver-dovecot-extras
smeserver-dovecot-extras-0_1_6-8_el7_sme contribs10
Package smeserver-dovecot-extras enqueued. Job ID: 3901.
%changelog
* Mon Aug 08 2022 Jean-Philippe Pialasse <[email protected]> 0.1.6-8.sme
- fix db overwritten [SME: 12144]
might need some testing bunkobugsy
if [ -s /home/e-smith/db/dovecot/sharedmailbox.db ] ; then
# echo "we already have a non empty file at destination" ;
# delete etc file if empty
if [ -e /etc/dovecot/sharedmailbox/dict.db ] ; then
# if exists and not empty we backup, else we delete
[ -s /etc/dovecot/sharedmailbox/dict.db ] && mv -f
/etc/dovecot/sharedmailbox/dict.db /home/e-smith/db/dovecot/dictdb.old || rm
-rf /etc/dovecot/sharedmailbox ;
fi
elif [ -e /etc/dovecot/sharedmailbox/dict.db ]; then
# if exists and not empty
[ -s /home/e-smith/db/dovecot/sharedmailbox.db ] && mv -f
/etc/dovecot/sharedmailbox/dict.db /home/e-smith/db/dovecot/sharedmailbox.db ;
# then we remove the etc dir ;
rm -rf /etc/dovecot/sharedmailbox
fi
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/