Fixed systemctl commands being called even if it wasn't available
On systems where the systemd directories exist but not the systemctl command, installation of MaxScale would cause systemctl to be called. This would print an error when the package is being installed.
This commit is contained in:
parent
24abdb36b4
commit
ea0c4bd616
@ -44,7 +44,8 @@ else
|
||||
echo "Could not find ldconfig file: @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale.conf" >& 2
|
||||
fi
|
||||
|
||||
if [ -f @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale.service ]
|
||||
# Only copy the scripts if systemd folder and systemctl executable are found
|
||||
if [ -f @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale.service ] && [ -x "$(which systemctl)" ]
|
||||
then
|
||||
if [ -d "/lib/systemd/system" ]
|
||||
then
|
||||
|
Loading…
x
Reference in New Issue
Block a user