From 3386248c5270c0c841ffcb01ffcfaca3082f2b5a Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Fri, 8 Nov 2013 08:29:17 +0200 Subject: [PATCH] fix for puburl --- aerofs/aerofs-puburl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/aerofs/aerofs-puburl b/aerofs/aerofs-puburl index 4216dc3..34996c3 100755 --- a/aerofs/aerofs-puburl +++ b/aerofs/aerofs-puburl @@ -1,16 +1,17 @@ #!/bin/bash -if [ ! -e "$HOME/.aerofs/pub.root" ] -then echo file "$HOME/.aerofs/pub.root" not found. +MyRoot=$( sqlite3 $HOME/.aerofs/conf "SELECT v FROM c WHERE k = 'root';" )/Public/ + +if [ ! -e "$MyRoot/.pubroot" ] +then echo file "$MyRoot/.pubroot" not found. echo it must contain the string of your http server with pub files. echo ex. http://server.com:7777/ exit 1 fi -MyRoot=$( sqlite3 $HOME/.aerofs/conf "SELECT v FROM c WHERE k = 'root';" )/Public/ -MyServerRoot=$( cat "$HOME/.aerofs/pub.root" | tr -d "[:cntrl:]" ) +MyServerRoot=$( cat "$MyRoot/.pubroot" | tr -d "[:cntrl:]" ) if [ -z "$1" ] then echo provide filename