[Git][debian-proftpd-team/proftpd][master] Patch for #608881
Hilmar Preuße
gitlab at salsa.debian.org
Sat May 5 09:17:38 BST 2018
Hilmar Preuße pushed to branch master at Debian ProFTPD Team / proftpd
Commits:
43c8f1f8 by Hilmar Preusse at 2018-05-05T10:17:30+02:00
Patch for #608881
- - - - -
2 changed files:
- debian/changelog
- debian/proftpd-basic.postinst
Changes:
=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ proftpd-dfsg (1.3.6-3) UNRELEASED; urgency=medium
[ Hilmar Preuße ]
* Run configure w/ --disable-xattr only on kfreebsd to fix FTBFS.
(Closes: #897168)
+ * Do create /run/proftpd also in postinst, if not exists yet.
+ (Closes: #608881)
-- Francesco Paolo Lovergine <frankie at debian.org> Tue, 01 May 2018 14:57:41 +0200
=====================================
debian/proftpd-basic.postinst
=====================================
--- a/debian/proftpd-basic.postinst
+++ b/debian/proftpd-basic.postinst
@@ -115,6 +115,12 @@ EOF
fi
}
+create_run_dir () {
+
+ [ ! -d /run/proftpd ] && mkdir /run/proftpd
+}
+
+
. /usr/share/debconf/confmodule
# update-ined is used if found, else you are on your own
@@ -125,7 +131,10 @@ else
fi
if [ "$1" = "configure" ]; then
-
+
+ # create diretory in /run
+ create_run_dir
+
# mv eventual old configuration in the new location
if [ -f /etc/proftpd.conf -a ! -f $CONF ]; then
mv /etc/proftpd.conf $CONF
View it on GitLab: https://salsa.debian.org/debian-proftpd-team/proftpd/commit/43c8f1f88d0266677a40848a493546f5fe23289c
---
View it on GitLab: https://salsa.debian.org/debian-proftpd-team/proftpd/commit/43c8f1f88d0266677a40848a493546f5fe23289c
You're receiving this email because of your account on salsa.debian.org.
More information about the Pkg-proftpd-maintainers
mailing list