redis icon indicating copy to clipboard operation
redis copied to clipboard

misjudgement between update-rc.d and chkconfig

Open FightingMan opened this issue 13 years ago • 2 comments

utils/install_server.sh line:176~183 if [ !which chkconfig ] ; then #if we're not a chkconfig box assume we're able to use update-rc.d update-rc.d redis_$REDIS_PORT defaults && echo "Success!" else # we're chkconfig, so lets add to chkconfig and put in runlevel 345 chkconfig --add redis_$REDIS_PORT && echo "Successfully added to chkconfig!" chkconfig --level 345 redis_$REDIS_PORT on && echo "Successfully added to runlevels 345!" fi

line 176 need change to if [ ! which chkconfig ] ; then miss a space behind "!"

FightingMan avatar Jan 07 '13 07:01 FightingMan

@FightingMan

I met the same problem today. Besides, there're some other spaces missed in install_server.sh in line 62, 72 and 81, which makes customized configuration ignored.

e.g.

    if [ !"$REDIS_CONFIG_FILE" ] ; then
        REDIS_CONFIG_FILE=$_REDIS_CONFIG_FILE
        echo "Selected default - $REDIS_CONFIG_FILE"
    fi

caoxudong avatar Jan 07 '13 08:01 caoxudong

@FightingMan

My shell is /bin/bash

caoxudong avatar Jan 07 '13 08:01 caoxudong