diff --git a/etc/postinst.in b/etc/postinst.in index a46ec3bd9..592fcf0ce 100755 --- a/etc/postinst.in +++ b/etc/postinst.in @@ -53,7 +53,7 @@ then systemctl daemon-reload fi else - if [ -d "/etc/init/" ] + if [ -d "/etc/init/" ] && [ -f "@CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/upstart/maxscale.conf" ] then cp @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/upstart/maxscale.conf /etc/init/ fi