2
0

fixperms 338 B

1234567891011
  1. #!/bin/bash
  2. echo "Fixing filesystem permissions..."
  3. if [ -z "$1" ]; then
  4. bin/clinotty find var vendor pub/static pub/media app/etc \( -type f -or -type d \) -exec chmod u+w {} +;
  5. bin/clinotty chmod u+x bin/magento
  6. else
  7. bin/clinotty find "$1" \( -type f -or -type d \) -exec chmod u+w {} +;
  8. fi
  9. echo "Filesystem permissions fixed."