X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=INSTALL.sh;h=5def641dae0fc6e5d5e0f7805e2c5e7df7b4ff26;hb=efcfcc246458c7592395d2971ed7141c224ecf14;hp=e2f2b51bba44556d997ba5e5ea714ba20f159b11;hpb=a12137077a4dae60bdd2eeb26a36638fd01d6d78;p=brisk.git diff --git a/INSTALL.sh b/INSTALL.sh index e2f2b51..5def641 100755 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -3,7 +3,7 @@ # # Defaults # -CONFIG_FILE="$HOME/.brosk_install" +CONFIG_FILE="$HOME/.brisk_install" players_n=3 tables_n=44 @@ -251,7 +251,7 @@ if [ "$web_only" = "FALSE" ]; then chmod 777 ${ftokk_path}/bin5 fi - for i in $(seq 0 $max_players); do + for i in $(seq 0 $((tables_n - 1))); do if [ ! -d ${ftokk_path}/bin5/table$i ]; then mkdir ${ftokk_path}/bin5/table$i fi @@ -262,13 +262,13 @@ if [ "$web_only" = "FALSE" ]; then touch ${ftokk_path}/bin5/table$i/user$e chmod 666 ${ftokk_path}/bin5/table$i/user$e done + # create subdirectories in proxy path + if [ ! -d ${proxy_path}/bin5/table$i ]; then + mkdir -p ${proxy_path}/bin5/table$i + fi done + chmod -R 777 ${proxy_path}/bin5 - # create subdirectories in proxy path - if [ ! -d ${proxy_path}/bin5 ]; then - mkdir ${proxy_path}/bin5 - fi - chmod 777 ${proxy_path}/bin5 fi install -d ${web_path}__ for i in $(find web -type d | grep -v /CVS | sed 's/^....//g'); do