Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
dc997755
Commit
dc997755
authored
Jul 24, 2017
by
Salvatore Sanfilippo
Committed by
GitHub
Jul 24, 2017
Browse files
Merge pull request #1934 from badboy/install-script-1922
Don't use extended Regexp Syntax
parents
6b64cc47
367035a9
Changes
1
Show whitespace changes
Inline
Side-by-side
utils/install_server.sh
View file @
dc997755
...
...
@@ -168,13 +168,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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment