Created
February 10, 2014 06:22
-
-
Save Akkiesoft/8911237 to your computer and use it in GitHub Desktop.
Pukiwikiのパーミッションをなおすなにか
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| site=$1 | |
| changemod() { | |
| chmod 666 * | |
| chmod 644 index.html .htaccess | |
| return 0 | |
| } | |
| echo Directories | |
| cd $site | |
| chmod 777 attach backup cache counter diff wiki | |
| echo attach | |
| cd $site/attach | |
| changemod | |
| echo backup | |
| cd $site/backup | |
| changemod | |
| echo cache | |
| cd $site/cache | |
| changemod | |
| echo counter | |
| cd $site/counter | |
| changemod | |
| echo diff | |
| cd $site/diff | |
| changemod | |
| echo wiki | |
| cd $site/wiki | |
| changemod | |
| echo Done. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment