From f16e93c1129f2ae7c0a5dae539a4a11a2e7de21d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 25 Jul 2017 10:32:50 +0300 Subject: [PATCH] MXS-1285: Check that upstart config exists before copying it The existence of the file should be checked before it is copied. Otherwise the installation will produce errors. --- etc/postinst.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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