Changeset 2b9c5b7


Ignore:
Timestamp:
Apr 25, 2013 11:44:27 AM (12 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.1-release, 9.2-release, releng/10.0, releng/10.0.1
Children:
42584ef
Parents:
c88b2a4
Message:

Fix a bug setting location of aria2 stat file when running through sudo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/libsh/functions.sh

    r83ebbb5 r2b9c5b7  
    160160 
    161161   # Server status flag 
    162    local aStatFile=${HOME}/.pcbsd-aria-stat 
     162   if [ `id -u` = "0" ] ; then 
     163      aStatFile=/root/.pcbsd-aria-stat 
     164   else 
     165      aStatFile=${HOME}/.pcbsd-aria-stat 
     166   fi 
     167 
    163168   if [ -e "$aStatFile" ] ; then 
    164169     local aStat="--server-stat-of=$aStatFile --server-stat-if=$aStatFile --uri-selector=adaptive --server-stat-timeout=864000" 
Note: See TracChangeset for help on using the changeset viewer.