allow non-root to tail logs
This commit is contained in:
parent
182dd34d2c
commit
ecbdbf0a66
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ tail_log() {
|
||||||
if [ -e $LOG_FILE ]; then
|
if [ -e $LOG_FILE ]; then
|
||||||
echo ' :: Viewing '${LOG_FILE}'. Press CTRL+C to exit'
|
echo ' :: Viewing '${LOG_FILE}'. Press CTRL+C to exit'
|
||||||
echo ''
|
echo ''
|
||||||
su -c "tail --follow=name ${LOG_FILE}"
|
tail --follow=name ${LOG_FILE}
|
||||||
else
|
else
|
||||||
echo ' :: '$LOG_FILE' not found'
|
echo ' :: '$LOG_FILE' not found'
|
||||||
echo ' :: Check '$LOG_PATH
|
echo ' :: Check '$LOG_PATH
|
||||||
|
|
Loading…
Add table
Reference in a new issue