Fixed typo in postinstall script

A typo caused the script to malfunction.
This commit is contained in:
Markus Makela
2015-12-11 06:13:21 +02:00
parent 3139be8e5a
commit f0c66232b5

View File

@ -14,7 +14,7 @@ mkdir -p @MAXSCALE_VARDIR@/cache/maxscale
mkdir -p @MAXSCALE_VARDIR@/run/maxscale mkdir -p @MAXSCALE_VARDIR@/run/maxscale
# Create MaxScale user # Create MaxScale user
if [ -f "/etc/passwd" -a "$(grep -c 'maxscale' /etc/passwd)" -eq 0 ] if [ -f "/etc/passwd" ] && [ "$(grep -c 'maxscale' /etc/passwd)" -eq 0 ]
then then
useradd -r -U -s /bin/false maxscale useradd -r -U -s /bin/false maxscale
fi fi
@ -44,7 +44,7 @@ else
echo "Could not find ldconfig file: @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale.conf" >& 2 echo "Could not find ldconfig file: @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale.conf" >& 2
fi fi
if [-f @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale.service ] if [ -f @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale.service ]
then then
if [ -d "/lib/systemd/system" ] if [ -d "/lib/systemd/system" ]
then then