mirror of
https://github.com/ossrs/srs.git
synced 2025-11-24 11:54:21 +08:00
remove the sudo of log.
This commit is contained in:
@@ -38,7 +38,7 @@ failed_msg(){
|
||||
|
||||
function check_log(){
|
||||
log_dir="`dirname $log`"
|
||||
(mkdir -p ${log_dir} && sudo chmod 777 ${log_dir} && touch $log)
|
||||
(mkdir -p ${log_dir} && chmod 777 ${log_dir} && touch $log)
|
||||
ret=$?; if [[ $ret -ne 0 ]]; then failed_msg "create log failed, ret=$ret"; return $ret; fi
|
||||
ok_msg "create log( ${log} ) success"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user