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.
This commit is contained in:
@ -53,7 +53,7 @@ then
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ -d "/etc/init/" ]
|
if [ -d "/etc/init/" ] && [ -f "@CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/upstart/maxscale.conf" ]
|
||||||
then
|
then
|
||||||
cp @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/upstart/maxscale.conf /etc/init/
|
cp @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/upstart/maxscale.conf /etc/init/
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user