From: Andy H. <ah...@ht...> - 2003-05-20 04:24:31
|
-----BEGIN PGP SIGNED MESSAGE----- With the latest version from cvs, I actually got a complaint about the number of params from chmod. Here's a patch. It also includes a change for bash, since it does not use valid bourne shell syntax (not noticeable in Linux which has sh linked directly to bash). > cvs diff setup/secure_phpws.sh Index: setup/secure_phpws.sh =================================================================== RCS file: /home/cvsroot/phpwebsite/setup/secure_phpws.sh,v retrieving revision 1.10 diff -r1.10 secure_phpws.sh 1c1 < #!/bin/sh - --- > #!/bin/bash 39,40c39,40 < chmod 775 `find ../ -type d` < chmod 664 `find ../ -type f` - --- > find ../ -type d | xargs chmod 775 > find ../ -type f | xargs chmod 664 63,64c63,64 < chmod 775 `find ../ -type d` < chmod 664 `find ../ -type f` - --- > find ../ -type d | xargs chmod 775 > find ../ -type f | xargs chmod 664 ~~ Andy Harrison ah##@httpsite.com ICQ: 123472 AIM/Y!: AHinMaine [full headers for details] -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 iQCVAwUBPsmuAVPEkLgodAWVAQExJgP/dOMbPLEEau7fl5mkpz6Yp301aRVcTE/J 1IeJfZoSdKdZKE2AQOt48FDgHwslVkRs8lGonfGm8pgn2j7a/+zSjfzUhaZPCeo/ YXsGvgTjiIRcLOpFJltHUglxqv2sZGN2K6HUja9VJVLOA1ILOw5l56YVyIIx/ORn 3mEBDy82JyM= =ief3 -----END PGP SIGNATURE----- |