Patchwork vsftpd-2.0.5: don't run pkg_postinst on host

login
register
mail settings
Submitter Andreas Oberritter
Date Dec. 8, 2010, 1:01 p.m.
Message ID <1291813263-24629-1-git-send-email-obi@opendreambox.org>
Download mbox | patch
Permalink /patch/20/
State Accepted
Commit f7f9648d31ce411b7e191b6b57ff1bd78b286e59
Headers show

Comments

Andreas Oberritter - Dec. 8, 2010, 1:01 p.m.
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
 recipes/vsftpd/vsftpd_2.0.5.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/recipes/vsftpd/vsftpd_2.0.5.bb b/recipes/vsftpd/vsftpd_2.0.5.bb
index 0b9e75d..518628e 100644
--- a/recipes/vsftpd/vsftpd_2.0.5.bb
+++ b/recipes/vsftpd/vsftpd_2.0.5.bb
@@ -35,6 +35,9 @@  do_install() {
 }
 
 pkg_postinst() {
+        if [ "x$D" != "x" ]; then
+                exit 1
+        fi
         addgroup ftp
         adduser --system --home /var/lib/ftp --no-create-home --ingroup ftp --disabled-password -s /bin/false ftp
         mkdir -p ${localstatedir}/share/empty