mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-05 17:52:29 +00:00
Edit getsession() for 0.9 config format
This commit is contained in:
@@ -130,7 +130,7 @@ d_stop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getsession() {
|
getsession() {
|
||||||
session=$(cat "$1" | grep "^[[:space:]]*session[[:space:]]*=" | sed "s/^[[:space:]]*session[[:space:]]*=[[:space:]]*//" )
|
session=$(cat "$1" | grep "^[[:space:]]*session.path.set[[:space:]]*=" | sed "s/^[[:space:]]*session.path.set[[:space:]]*=[[:space:]]*//" )
|
||||||
#session=${session/#~/`getent passwd ${user}|cut -d: -f6`}
|
#session=${session/#~/`getent passwd ${user}|cut -d: -f6`}
|
||||||
echo $session
|
echo $session
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user