summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Erik Rediger <badboy@archlinux.us>2014-08-13 19:31:57 +0200
committerantirez <antirez@gmail.com>2017-07-24 15:21:14 +0200
commit7fcca9baefe9000b8806c8385cd8652245c846e4 (patch)
tree8ba6f2b8f843c4b3041a5c6c7ee44f9f0eb353c0
parent41963fe67649f9034dcdd715dc3c1973b3cc6ea2 (diff)
downloadredis-7fcca9baefe9000b8806c8385cd8652245c846e4.tar.gz
Don't use extended Regexp Syntax
It's not POSIX (BSD systems have -E instead) and we don't actually need it. Closes #1922
-rwxr-xr-xutils/install_server.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/install_server.sh b/utils/install_server.sh
index 98e047e3d..39fd9875a 100755
--- a/utils/install_server.sh
+++ b/utils/install_server.sh
@@ -135,13 +135,13 @@ fi
echo "## Generated by install_server.sh ##" > $TMP_FILE
read -r SED_EXPR <<-EOF
-s#^port [0-9]{4}\$#port ${REDIS_PORT}#; \
-s#^logfile .+\$#logfile ${REDIS_LOG_FILE}#; \
-s#^dir .+\$#dir ${REDIS_DATA_DIR}#; \
-s#^pidfile .+\$#pidfile ${PIDFILE}#; \
-s#^daemonize no\$#daemonize yes#;
+s#^port .\+#port ${REDIS_PORT}#; \
+s#^logfile .\+#logfile ${REDIS_LOG_FILE}#; \
+s#^dir .\+#dir ${REDIS_DATA_DIR}#; \
+s#^pidfile .\+#pidfile ${PIDFILE}#; \
+s#^daemonize no#daemonize yes#;
EOF
-sed -r "$SED_EXPR" $DEFAULT_CONFIG >> $TMP_FILE
+sed "$SED_EXPR" $DEFAULT_CONFIG >> $TMP_FILE
#cat $TPL_FILE | while read line; do eval "echo \"$line\"" >> $TMP_FILE; done
cp $TMP_FILE $REDIS_CONFIG_FILE || die "Could not write redis config file $REDIS_CONFIG_FILE"