Rev | Line | |
---|
[1] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | dirroot=$1 |
---|
| 4 | |
---|
| 5 | if [ -f "$dirroot/_config.inc.php" ] |
---|
| 6 | then |
---|
| 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!" |
---|
| 13 | else |
---|
| 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; |
---|
| 16 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.