From: <jgs...@us...> - 2003-12-09 06:50:16
|
Update of /cvsroot/serverfilters/script In directory sc8-pr-cvs1:/tmp/cvs-serv28582/script Added Files: getrc putrc rcexists Log Message: Removed FTP requirement. New backend uses "sudo" do properly move and set permissions on files with scripts in the script directory. --- NEW FILE: getrc --- #!/bin/sh FILE=$1 NEWFILE=$2 cp $FILE $NEWFILE chown $SUDO_UID:$SUDO_GID $NEWFILE chmod 0600 $NEWFILE --- NEW FILE: putrc --- #!/bin/sh USER=$1 FILE=$2 DIR=$3 if [ "$USER" == "root" ] || [ "$USER" == "0" ] ; then echo "Cannot set owner to root." exit fi; chown $USER $FILE chmod 0600 $FILE mv $FILE $DIR --- NEW FILE: rcexists --- #!/bin/sh FILE=$1 if [ -e $FILE ] ; then exit 0 else echo not found; exit 1 fi |