purge doesn't remove all config files

Bug #32521 reported by Oscar
6
Affects Status Importance Assigned to Milestone
gallery (Debian)
Fix Released
Unknown
gallery (Ubuntu)
Fix Released
Medium
Canonical Server

Bug Description

When doing an 'sudo aptitude purge gallery' it seems to leave files in /etc/gallery, namely config.php and htaccess. According to this link it does appear that it really should remove them: http://groups.google.com/group/comp.os.linux.advocacy/browse_thread/thread/15ca8b921e5cf7bf/98e1df54fe4d8aa4?lnk=st&q=apt-get+purge+modified+configuration+files&rnum=4&hl=en#98e1df54fe4d8aa4

Related branches

Revision history for this message
Niklas Klein (kleinernik) wrote :

The postrm script of gallery uses "rmdir --ignore-fail-on-non-empty /etc/gallery || true", should we use "rm -rf /etc/gallery" instead?

Revision history for this message
Niklas Klein (kleinernik) wrote :

Sorry, cjwatson pointed out to me, that /etc/gallery should not be deleted completely, only the file installed by the gallery package.

Revision history for this message
Niklas Klein (kleinernik) wrote :

I added a line to remove the config.php and htaccess on purge in the postrm script.

Changed in gallery:
status: New → Confirmed
Changed in gallery:
assignee: nobody → canonical-server
Changed in gallery:
status: Unknown → New
Revision history for this message
Mathias Gug (mathiaz) wrote :

Could also attached a patch to the debian bug report ?

Revision history for this message
Niklas Klein (kleinernik) wrote :

gallery (1.5.5-pl1-1.1ubuntu1) gutsy; urgency=low

  * Delete config.php and htaccess on purge. (LP: #32521).

 -- Niklas Klein <email address hidden> Thu, 13 Sep 2007 09:29:20 +0200

Changed in gallery:
status: Confirmed → Fix Released
Revision history for this message
Niklas Klein (kleinernik) wrote :

Submitted patch to debian

Changed in gallery (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.