mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
auto detect the sed command for osx.
This commit is contained in:
parent
f510a3d6fb
commit
a45cf38d44
2 changed files with 14 additions and 7 deletions
|
@ -504,11 +504,7 @@ if [ $__SRS_BUILD_NGINX = YES ]; then
|
|||
# srs will write ts/m3u8 file use current user,
|
||||
# nginx default use nobody, so cannot read the ts/m3u8 created by srs.
|
||||
cp ${SRS_OBJS}/nginx/conf/nginx.conf ${SRS_OBJS}/nginx/conf/nginx.conf.bk
|
||||
if [ $OS_IS_OSX = YES ]; then
|
||||
sed -i '' "s/^.user nobody;/user `whoami`;/g" ${SRS_OBJS}/nginx/conf/nginx.conf
|
||||
else
|
||||
sed -i "s/^.user nobody;/user `whoami`;/g" ${SRS_OBJS}/nginx/conf/nginx.conf
|
||||
fi
|
||||
$SED '' "s/^.user nobody;/user `whoami`;/g" ${SRS_OBJS}/nginx/conf/nginx.conf
|
||||
fi
|
||||
|
||||
# the demo dir.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue