]> git.pld-linux.org Git - packages/pure-ftpd.git/commitdiff
- rel 4; support alternative config locations auto/th/pure-ftpd-1.0.48-4
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 27 Mar 2019 19:38:22 +0000 (20:38 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 27 Mar 2019 19:38:22 +0000 (20:38 +0100)
pure-ftpd.init
pure-ftpd.spec

index f33c263aa199fc75df222145de00c16447bd4588..d032e8a13988c64aa656118042c65ddfd8d9ecc7 100644 (file)
@@ -12,6 +12,9 @@
 # Get network config
 . /etc/sysconfig/network
 
+PURE_FTPD_CONF=/etc/ftpd/pureftpd.conf
+[ -f /etc/pure-ftpd/conf/pureftpd.conf ] && PURE_FTPD_CONF=/etc/pure-ftpd/conf/pureftpd.conf
+
 PURE_AUTH_SCRIPT=/etc/pure-ftpd/authd/auth.script
 PURE_AUTH_SOCKET=/var/run/pure-authd/socket
 PURE_CERT_SCRIPT=/etc/pure-ftpd/certd/cert.script
@@ -68,7 +71,7 @@ start() {
                        msg_starting pure-ftpd
                        rm -f /var/run/pure-ftpd/client*
                        modprobe -s capability > /dev/null 2>&1
-                       daemon /usr/sbin/pure-ftpd /etc/ftpd/pureftpd.conf \
+                       daemon /usr/sbin/pure-ftpd ${PURE_FTPD_CONF} \
                                $([ "$PURE_AUTH" = "yes" ] && echo "-lextauth:$PURE_AUTH_SOCKET") \
                                $([ "$PURE_CERT" = "yes" ] && echo "--extcert=$PURE_CERT_SOCKET") \
                                --daemonize
index 423b2cbf821bf80da054dc76efe133da5bf362d6..e54f0e9af37459f07f881bf3de7d4635b0188c77 100644 (file)
@@ -9,7 +9,7 @@
 %bcond_without tls             # disable SSL/TLS support
 %bcond_without cap             # disable capabilities
 
-%define        rel     3
+%define        rel     4
 Summary:       Small, fast and secure FTP server
 Summary(pl.UTF-8):     Mały, szybki i bezpieczny serwer FTP
 Name:          pure-ftpd
This page took 0.140936 seconds and 4 git commands to generate.