#!/bin/sh

echo __________________________________________________________________
echo
echo Updated 24 Aug 2001 by Zoltan Milosevic - zoltanm@nickname.net
echo
echo This batch file sets the proper file permissions on Unix for the
echo Fluid Dynamics Search Engine.  Use "setperms.bat" for Windows
echo systems.
echo
echo To run, open a command prompt or telnet window and navigate to
echo the folder just above the "searchdata" folder.  Type the name for
echo this script, and hit Enter.  All proper permissions will be set.
echo
echo Run this file from an account which has change permission rights
echo for all files in the "searchdata" folder.  Typically the root or
echo file owner accounts would be appropriate.
echo
echo For more information, visit http://www.xav.com/scripts/search/
echo
echo __________________________________________________________________
echo

echo Setting permissions...
chmod 755 search.*
chmod 755 proxy.*
cd searchdata
chmod -R 777 .
chmod -R 766 *.*
cd ..
echo

echo __________________________________________________________________
echo
echo Note: if FDSE has already been installed, then some operations
echo will fail as \"chmod: xxx.txt: Operation not permitted\".  This is
echo expected and is not a problem.
echo
echo Permissions finished.
echo __________________________________________________________________
echo


