source: trunk/bin/pedit_permissions.sh

Last change on this file was 1, checked in by scdev, 19 years ago

Initial import.

File size: 507 bytes
Line 
1#!/bin/sh
2
3dirroot=$1
4
5if [ -f "$dirroot/_config.inc.php" ]
6then
7    cd $dirroot
8    find . -type d | xargs chmod 777
9    find . -type f | xargs chmod 666
10    chmod 644 login.php
11    chmod 644 _config.inc.php
12    echo "Permissions fixed!"
13else
14    echo "$0: This script must be called with the web directory root as an argument. (eg. '$0 /home/user/www'). And the web directory root must contain a _config.inc.php file (just a simple test to make sure we run this script in the correct place)."
15    exit;
16fi
Note: See TracBrowser for help on using the repository browser.