#! /bin/sh # # Filename: publish # # Author: Br. David Carlson # # Date: August 10, 1998 # # This script makes the user's files in public_html to have permissions 644 # so that they are viewable by browser. USER=`whoami` PUB_DIR=/users/$USER/public_html TMP=/tmp/publish.$$ ls $PUB_DIR > $TMP sync sleep 1 while read fname do if [ -f "$PUB_DIR/$fname" ] then chmod 644 "$PUB_DIR/$fname" fi done < $TMP rm $TMP exit 0