[Git][debian-proftpd-team/proftpd][master_start_using_dhinstallsystemd] Check if we do configure before check for standalone.

Hilmar Preuße (@hilmar-guest) gitlab at salsa.debian.org
Tue Nov 8 22:37:56 GMT 2022



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


Commits:
a2a4f7ae by Hilmar Preusse at 2022-11-08T23:37:46+01:00
Check if we do configure before check for standalone.

- - - - -


1 changed file:

- debian/proftpd-core.postinst


Changes:

=====================================
debian/proftpd-core.postinst
=====================================
@@ -216,13 +216,16 @@ if [ -e "/etc/init.d/proftpd" ]; then
     fi
 fi
 
-# enable and start proftpd daemon via systemctl
-if egrep -qi "^[[:space:]]*ServerType.*standalone" /etc/proftpd/proftpd.conf
-then
-    echo "Server configured as standalone."
-else
-    echo "Server not configured as standalone, exiting."
-    exit 0
+# Check if we are standalone, before trying to start via systemd.
+
+if [ "$1" = "configure" ]; then
+    if egrep -qi "^[[:space:]]*ServerType.*standalone" /etc/proftpd/proftpd.conf
+    then
+        echo "Server configured as standalone."
+    else
+        echo "Server not configured as standalone, exiting."
+        exit 0
+    fi
 fi
 
 #DEBHELPER#



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

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




More information about the Pkg-proftpd-maintainers mailing list