[Git][debian-proftpd-team/proftpd][master] Now using command -v instead of which in post* scripts.
Francesco Paolo Lovergine (@frankie)
frankie at debian.org
Tue Jun 20 17:34:53 BST 2023
Francesco Paolo Lovergine pushed to branch master at Debian ProFTPD Team / proftpd
Commits:
6b07054b by Francesco Paolo Lovergine at 2023-06-20T18:34:12+02:00
Now using command -v instead of which in post* scripts.
- - - - -
3 changed files:
- debian/changelog
- debian/proftpd-core.postinst
- debian/proftpd-core.postrm
Changes:
=====================================
debian/changelog
=====================================
@@ -1,8 +1,12 @@
proftpd-dfsg (1.3.8+dfsg-5) UNRELEASED; urgency=medium
+ [ Hilmar Preusse ]
* Run just "make check-api" in test suite instead of patching
test Makefile.
+ [ Francesco Paolo Lovergine ]
+ * Replaced deprecated which command in postinst/rm.
+
-- Hilmar Preusse <hille42 at web.de> Wed, 15 Mar 2023 10:00:43 +0100
proftpd-dfsg (1.3.8+dfsg-4) unstable; urgency=medium
=====================================
debian/proftpd-core.postinst
=====================================
@@ -140,7 +140,7 @@ EOF
}
# update-inetd is used if found, else you are on your own
-if [ ! -z `which update-inetd` ]; then
+if [ ! -z `command -v update-inetd` ]; then
UPDATE_INETD=update-inetd
else
UPDATE_INETD=/bin/true
=====================================
debian/proftpd-core.postrm
=====================================
@@ -4,7 +4,7 @@ set -e
if [ "$1" = "disappear" -o "$1" = "remove" ]
then
- if [ ! -z `which update-inetd` ]
+ if [ ! -z `command -v update-inetd` ]
then
update-inetd --disable ftp
fi
View it on GitLab: https://salsa.debian.org/debian-proftpd-team/proftpd/-/commit/6b07054b46ea55aea8ab31314b8aa2ea646e5ff0
--
View it on GitLab: https://salsa.debian.org/debian-proftpd-team/proftpd/-/commit/6b07054b46ea55aea8ab31314b8aa2ea646e5ff0
You're receiving this email because of your account on salsa.debian.org.
More information about the Pkg-proftpd-maintainers
mailing list