diff options
-rw-r--r-- | debian/preinst | 4 | ||||
-rw-r--r-- | 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 |