Last active
June 11, 2016 09:50
-
-
Save sistematico/c7defabd4ae2b683f16496414445e702 to your computer and use it in GitHub Desktop.
Conserta as permissões do Grav | Fix Grav permissions
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 | |
| GRAV_PATH="/var/www/lucasbrum.tk" | |
| GRAV_USER="webdev" | |
| GRAV_GROUP="webdev" | |
| chown ${GRAV_USER}:${GRAV_GROUP} $GRAV_PATH | |
| chown -R ${GRAV_USER}:${GRAV_GROUP} $GRAV_PATH | |
| find $GRAV_PATH -type f | xargs chmod 664 | |
| find ${GRAV_PATH}/bin -type f | xargs chmod 775 | |
| find $GRAV_PATH -type d | xargs chmod 775 | |
| find $GRAV_PATH -type d | xargs chmod +s | |
| cd $GRAV_PATH | |
| umask 0002 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment