[Git][debian-proftpd-team/proftpd][master] Fixating a piuparts complaining.

Francesco Paolo Lovergine frankie at debian.org
Fri Jan 15 14:15:08 GMT 2021



Francesco Paolo Lovergine pushed to branch master at Debian ProFTPD Team / proftpd


Commits:
2d377257 by Francesco Paolo Lovergine at 2021-01-15T15:09:47+01:00
Fixating a piuparts complaining.

- - - - -


2 changed files:

- debian/changelog
- debian/proftpd-core.postrm


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+proftpd-dfsg (1.3.7a+dfsg-12) unstable; urgency=medium
+
+  * In d/postrm skip ucf purging if ucf is not available and make piuparts happy. 
+
+ -- Francesco Paolo Lovergine <frankie at debian.org>  Fri, 15 Jan 2021 15:09:32 +0100
+
 proftpd-dfsg (1.3.7a+dfsg-11) unstable; urgency=medium
 
   * Missing removing of ucf hashes on purge added to postrm.


=====================================
debian/proftpd-core.postrm
=====================================
@@ -13,15 +13,18 @@ fi
 if [ "$1" = "purge" ]
 then
 	# remove ucf hashes on purge
-    ucf --purge /etc/proftpd/proftpd.conf
-    ucf --purge /etc/proftpd/modules.conf
-    ucf --purge /etc/proftpd/tls.conf
-    ucf --purge /etc/proftpd/sql.conf
-    ucf --purge /etc/proftpd/ldap.conf
-    ucf --purge /etc/proftpd/virtuals.conf
-    ucf --purge /etc/proftpd/sftp.conf
-    ucf --purge /etc/proftpd/geoip.conf
-    ucf --purge /etc/proftpd/snmp.conf
+	if [ -x "/usr/bin/ucf" ]
+	then
+		ucf --purge /etc/proftpd/proftpd.conf
+		ucf --purge /etc/proftpd/modules.conf
+		ucf --purge /etc/proftpd/tls.conf
+		ucf --purge /etc/proftpd/sql.conf
+		ucf --purge /etc/proftpd/ldap.conf
+		ucf --purge /etc/proftpd/virtuals.conf
+		ucf --purge /etc/proftpd/sftp.conf
+		ucf --purge /etc/proftpd/geoip.conf
+		ucf --purge /etc/proftpd/snmp.conf
+	fi
     rm -rf /etc/proftpd 
     rm -rf /var/log/proftpd
     rm -rf /srv/ftp



View it on GitLab: https://salsa.debian.org/debian-proftpd-team/proftpd/-/commit/2d3772571cb29fc5e530a6772ae67ce4c9d3bba7

-- 
View it on GitLab: https://salsa.debian.org/debian-proftpd-team/proftpd/-/commit/2d3772571cb29fc5e530a6772ae67ce4c9d3bba7
You're receiving this email because of your account on salsa.debian.org.




More information about the Pkg-proftpd-maintainers mailing list