Skip to content

Instantly share code, notes, and snippets.

@sistematico
Last active June 11, 2016 09:50
Show Gist options
  • Select an option

  • Save sistematico/c7defabd4ae2b683f16496414445e702 to your computer and use it in GitHub Desktop.

Select an option

Save sistematico/c7defabd4ae2b683f16496414445e702 to your computer and use it in GitHub Desktop.
Conserta as permissões do Grav | Fix Grav permissions
#!/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