X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=INSTALL.sh;h=e4321a103000636cf32db2b780eb675733b64e45;hb=f7dc9ccf7ceef5b2fa796f713dc8851c6473f5e0;hp=5def641dae0fc6e5d5e0f7805e2c5e7df7b4ff26;hpb=6e47d10eadae6dab01193ada9698d350d2409eec;p=brisk.git diff --git a/INSTALL.sh b/INSTALL.sh index 5def641..e4321a1 100755 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -8,15 +8,15 @@ CONFIG_FILE="$HOME/.brisk_install" players_n=3 tables_n=44 tables_auth_n=12 -brisk_auth_conf="brosk_auth.conf.pho" +brisk_auth_conf="brisk_auth.conf.pho" brisk_debug="0x0400" # brisk_debug="0xffff" -web_path="/home/nastasi/web/brosk" -ftok_path="/home/nastasi/brisk-priv/ftok/brosk" -proxy_path="/home/nastasi/brisk-priv/proxy/brosk" -legal_path="/home/nastasi/brisk-priv/brosk" -cookie_path="/brosk/" -brisk_conf="brosk.conf.pho" +web_path="/home/nastasi/web/brisk" +ftok_path="/home/nastasi/brisk-priv/ftok/brisk" +proxy_path="/home/nastasi/brisk-priv/proxy/brisk" +legal_path="/home/nastasi/brisk-priv/brisk" +cookie_path="/brisk/" +brisk_conf="brisk.conf.pho" web_only="FALSE" @@ -201,6 +201,8 @@ if [ $? -ne 0 ]; then exit 1 fi +IFS=' +' # # Installation # @@ -271,18 +273,14 @@ if [ "$web_only" = "FALSE" ]; then fi install -d ${web_path}__ -for i in $(find web -type d | grep -v /CVS | sed 's/^....//g'); do +for i in $(find web -type d | sed 's/^....//g'); do install -d ${web_path}__/$i done -for i in $(find web -name '*.php' -o -name '*.phh' -o -name '*.pho' -o -name '*.css' -o -name '*.js' -o -name '*.mp3' -o -name '*.swf' | grep -v /CVS | sed 's/^....//g'); do - install -m 644 web/$i ${web_path}__/$i +for i in $(find web -name '.htaccess' -o -name '*.php' -o -name '*.phh' -o -name '*.pho' -o -name '*.css' -o -name '*.js' -o -name '*.mp3' -o -name '*.swf' | sed 's/^....//g'); do + install -m 644 "web/$i" "${web_path}__/$i" done -cd web -find . -name '.htaccess' -exec install -m 644 {} ${web_path}__/{} \; -cd - >/dev/null 2>&1 - if [ $players_n -eq 5 ]; then send_time=250 else @@ -315,7 +313,7 @@ sed -i "s@define *( *BRISK_CONF,[^)]*)@define(BRISK_CONF, \"$brisk_conf\")@g" ${ sed -i "s@define *( *BRISK_AUTH_CONF,[^)]*)@define(BRISK_AUTH_CONF, \"$brisk_auth_conf\")@g" ${web_path}__/Obj/auth.phh -sed -i "s@var \+xhr_rd_cookiepath \+= \+\"[^\"]*\";@var xhr_rd_cookiepath = \"$cookie_path\";@g" ${web_path}__/xhr.js +sed -i "s@\( \+xhr_rd_cookiepath *: *\)\"[^\"]*\" *,@\1 \"$cookie_path\",@g" ${web_path}__/http_streaming.js sed -i "s@var \+cookiepath \+= \+\"[^\"]*\";@var cookiepath = \"$cookie_path\";@g" ${web_path}__/commons.js if [ -d ${web_path} ]; then