mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 15:20:09 +01:00
added paths when command as root
This commit is contained in:
parent
bb298164e4
commit
e0bf648076
@ -58,7 +58,10 @@ start_wgd () {
|
|||||||
then mkdir "log"
|
then mkdir "log"
|
||||||
fi
|
fi
|
||||||
d=$(date '+%Y%m%d%H%M%S')
|
d=$(date '+%Y%m%d%H%M%S')
|
||||||
/usr/local/bin/gunicorn --access-logfile log/access_"$d".log \
|
if [[ $USER == root ]]; then
|
||||||
|
export PATH=$PATH:/usr/local/bin:$HOME/.local/bin
|
||||||
|
fi
|
||||||
|
gunicorn --access-logfile log/access_"$d".log \
|
||||||
--error-logfile log/error_"$d".log 'dashboard:run_dashboard()'
|
--error-logfile log/error_"$d".log 'dashboard:run_dashboard()'
|
||||||
printf "| Log files is under log/ |\n"
|
printf "| Log files is under log/ |\n"
|
||||||
printf "%s\n" "$dashes"
|
printf "%s\n" "$dashes"
|
||||||
|
Loading…
Reference in New Issue
Block a user