|
@@ -1,8 +1,13 @@
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
echo "Correcting filesystem permissions..."
|
|
echo "Correcting filesystem permissions..."
|
|
|
|
|
|
-bin/clinotty find var vendor pub/static pub/media app/etc -type f -exec chmod u+w {} \;
|
|
|
|
-bin/clinotty find var vendor pub/static pub/media app/etc -type d -exec chmod u+w {} \;
|
|
|
|
-bin/clinotty chmod u+x bin/magento
|
|
|
|
|
|
+if [ -z "$1" ]; then
|
|
|
|
+ bin/clinotty find var vendor pub/static pub/media app/etc -type f -exec chmod u+w {} \;
|
|
|
|
+ bin/clinotty find var vendor pub/static pub/media app/etc -type d -exec chmod u+w {} \;
|
|
|
|
+ bin/clinotty chmod u+x bin/magento
|
|
|
|
+else
|
|
|
|
+ bin/clinotty find $1 -type f -exec chmod u+w {} \;
|
|
|
|
+ bin/clinotty find $1 -type d -exec chmod u+w {} \;
|
|
|
|
+fi
|
|
|
|
|
|
echo "Filesystem permissions corrected."
|
|
echo "Filesystem permissions corrected."
|