Skip to content

Commit

Permalink
Update mw.tpl
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed May 21, 2024
1 parent 6eccdd5 commit f2171aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/init.d/mw.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,12 @@ mw_connect_mysql(){

mw_redis(){
CONF="${ROOT_PATH}/redis/redis.conf"

if [ ! -f "$CONF" ]; then
echo -e "not install redis!"
exit 1
fi

REDISPORT=$(cat $CONF |grep port|grep -v '#'|awk '{print $2}')
REDISPASS=$(cat $CONF |grep requirepass|grep -v '#'|awk '{print $2}')
if [ "$REDISPASS" != "" ];then
Expand Down

0 comments on commit f2171aa

Please sign in to comment.