[Git][debian-proftpd-team/proftpd][master] fix failure during upgrade

Hilmar Preuße gitlab at salsa.debian.org
Wed May 9 20:10:25 BST 2018


Hilmar Preuße pushed to branch master at Debian ProFTPD Team / proftpd


Commits:
0e21b614 by Hilmar Preusse at 2018-05-09T21:10:11+02:00
fix failure during upgrade

- - - - -


1 changed file:

- debian/proftpd-basic.postinst


Changes:

=====================================
debian/proftpd-basic.postinst
=====================================
--- a/debian/proftpd-basic.postinst
+++ b/debian/proftpd-basic.postinst
@@ -99,6 +99,12 @@ do_update () {
     fi
 }
 
+create_rundir () {
+    if [ ! -d /run/proftpd ]; then
+       mkdir /run/proftpd
+    fi
+}
+
 disable_script () {
 	file=$1
 	if [ -x ${file} ]; then
@@ -115,12 +121,6 @@ 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
@@ -133,7 +133,7 @@ fi
 if [ "$1" = "configure" ]; then
 
     # create directory in /run
-    create_run_dir
+    create_rundir
 
     # mv eventual old configuration in the new location
     if [ -f /etc/proftpd.conf -a ! -f $CONF ]; then



View it on GitLab: https://salsa.debian.org/debian-proftpd-team/proftpd/commit/0e21b614ef2a39e75658068eb8be238cd87e7d4e

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


More information about the Pkg-proftpd-maintainers mailing list