Changeset 22065


Ignore:
Timestamp:
2010-07-04T22:58:53+02:00 (8 years ago)
Author:
jow
Message:

[packages] transmission: offer option to run transmission as different user (#7555)

Location:
packages/net/transmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/transmission/Makefile

    r21814 r22065  
    1010PKG_NAME:=transmission 
    1111PKG_VERSION:=2.00 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
  • packages/net/transmission/files/transmission.init

    r21569 r22065  
    3838        local s="$1" 
    3939        local enable=0 
     40        local run_as_usr='root' 
    4041 
    4142        # disabled? 
     
    4445        config_get config_dir "$s" config_dir '/tmp/transmission' 
    4546        mkdir -p "$config_dir" 
     47        config_get run_as_usr "$s" run_daemon_as_user 'root'  
    4648 
    4749        echo "{" > $config_dir/settings.json 
     
    7072        echo "}" >> $config_dir/settings.json 
    7173         
    72         eval "$SSD -q -b -x $BIN -S -- -g $config_dir" 
     74        eval "$SSD -c $run_as_usr -q -b -x $BIN -S -- -g $config_dir" 
    7375} 
    7476 
Note: See TracChangeset for help on using the changeset viewer.