mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Update permissions check gate on docker starter sh
This will ensure we fire on files only, not directories ie 'import/upload'
This commit is contained in:
parent
89b0e1ed02
commit
9ac8400a90
@ -26,9 +26,9 @@ if [ $(id -u) -eq 0 ]; then
|
||||
|
||||
# If we find files in import directory, we need to ensure all dirs are owned by the root group,
|
||||
# This fixes bind mounts that may have incorrect perms.
|
||||
if [ "$(ls -A --ignore=.gitkeep ./import)" ]; then
|
||||
if [ "$(find ./import -type f ! -name '.gitkeep')" ]; then
|
||||
echo "\033[36mWrapper | \033[35m📋 Files present in import directory, checking/fixing permissions..."
|
||||
echo "\033[36mWrapper | \033[33m⏳ Please be paitent for larger servers..."
|
||||
echo "\033[36mWrapper | \033[33m⏳ Please be patient for larger servers..."
|
||||
find . ! -group root -exec chgrp root {} \;
|
||||
find . ! -perm g+rw -exec chmod g+rw {} \;
|
||||
find . -type d ! -perm g+s -exec chmod g+s {} \;
|
||||
|
Loading…
Reference in New Issue
Block a user