diff --git a/monkey_island/deb-package/DEBIAN/control b/monkey_island/deb-package/DEBIAN/control index e56705e37..ecbd75cc6 100644 --- a/monkey_island/deb-package/DEBIAN/control +++ b/monkey_island/deb-package/DEBIAN/control @@ -3,6 +3,6 @@ Architecture: amd64 Maintainer: Guardicore Homepage: http://www.guardicore.com Priority: optional -Version: VERSION +Version: 1.0 Description: Guardicore Infection Monkey Island (C&C) installation package Depends: openssl, python-pip diff --git a/monkey_island/deb-package/DEBIAN/postinst b/monkey_island/deb-package/DEBIAN/postinst index 22f24e715..f30767760 100644 --- a/monkey_island/deb-package/DEBIAN/postinst +++ b/monkey_island/deb-package/DEBIAN/postinst @@ -25,4 +25,6 @@ ${MONKEY_FOLDER}/create_certificate.sh service monkey-island start service monkey-mongo start -echo Monkey Island installation ended \ No newline at end of file +echo Monkey Island installation ended + +exit 0 \ No newline at end of file diff --git a/monkey_island/deb-package/DEBIAN/prerm b/monkey_island/deb-package/DEBIAN/prerm index 9c49e0cd7..e7924c738 100644 --- a/monkey_island/deb-package/DEBIAN/prerm +++ b/monkey_island/deb-package/DEBIAN/prerm @@ -5,5 +5,7 @@ service monkey-mongo stop || true rm -f /etc/init/monkey-island.conf rm -f /etc/init/monkey-mongo.conf -rm /lib/systemd/system/monkey-island.service -rm /lib/systemd/system/monkey-mongo.service \ No newline at end of file +[ -f "/lib/systemd/system/monkey-island.service" ] && rm -f /lib/systemd/system/monkey-island.service +[ -f "/lib/systemd/system/monkey-mongo.service" ] && rm -f /lib/systemd/system/monkey-mongo.service + +exit 0 \ No newline at end of file