From ae3e6c3f1f5fe57ead52e4dd15cd398e90f2f59e Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Mon, 14 Aug 2006 05:12:55 +0000 Subject: [PATCH] more checks in scripts --- debian/preinst | 4 +++- debian/prerm | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/debian/preinst b/debian/preinst index ec85d74f..4db03d17 100644 --- a/debian/preinst +++ b/debian/preinst @@ -1,4 +1,6 @@ #!/bin/sh if [ -e /usr/lib/xrdp/xrdp ]; then - /etc/init.d/xrdp_control.sh stop + if [ -e /etc/init.d/xrdp_control.sh ]; then + /etc/init.d/xrdp_control.sh stop + fi fi diff --git a/debian/prerm b/debian/prerm index 5cca9f29..060c2d48 100644 --- a/debian/prerm +++ b/debian/prerm @@ -1,4 +1,6 @@ #!/bin/sh if [ -e /usr/lib/xrdp ]; then - /etc/init.d/xrdp_control.sh stop + if [ -e /etc/init.d/xrdp_control.sh ]; then + /etc/init.d/xrdp_control.sh stop + fi fi