Yes, the following in samba-common.postinst:
ucf --three-way --debconf-ok "$NEWFILE" "$CONFIG"
ucfr samba-common "$CONFIG"
chmod a+r "$CONFIG"
results in:
Not replacing deleted config file /etc/samba/smb.conf
chmod: cannot access `/etc/samba/smb.conf': No such file or directory
If the file is deleted, it should probably reinstall a pristine version,
rather than just "Not replacing" it and letting chmod fail :)
It's still something that shouldn't happen (/etc conffiles should be
removed by purge, not manually) but given the number of updates that
fail for this reason a more graceful handling of this corner case is
definitely wanted.
** Changed in: samba (Ubuntu)
Importance: Undecided => Medium
Status: New => Confirmed
--
samba-common fails to upgrade if smb.conf is deleted
https://bugs.launchpad.net/bugs/312449
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs