Skip to content
Snippets Groups Projects
Commit 7042fa00 authored by Bob Mottram's avatar Bob Mottram
Browse files

furl format

parent a290548c
No related branches found
No related tags found
No related merge requests found
......@@ -490,8 +490,16 @@ function create_tahoelafs_client {
sed -i 's|tub.location =.*|tub.location = disabled|g' $client_dir/tahoe.cfg
}
function tahoelafs_parse_furl {
furl="$1"
furl_1=$(cat "$furl" | awk -F ' ' '{print $1}')
furl_2=$(cat "$furl" | awk -F ':' '{print $5}')
echo "${furl_1}:${furl_2}"
}
function get_tahoelafs_furl {
echo "$(cat /home/tahoelafs/storage/private/storage.furl)"
furl="$(cat /home/tahoelafs/storage/private/storage.furl)"
echo "$(tahoelafs_parse_furl \"$furl\")"
}
function get_tahoelafs_nick {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment