Skip to content

Instantly share code, notes, and snippets.

@yariksheptykin
Created July 24, 2019 12:23
Show Gist options
  • Save yariksheptykin/5f208a33f1cc0933c05a5e3573c9bcf7 to your computer and use it in GitHub Desktop.
Save yariksheptykin/5f208a33f1cc0933c05a5e3573c9bcf7 to your computer and use it in GitHub Desktop.
finds root owned pimcore versions
ls -la var/versions/object/ | awk '{print $NF}' | xargs -I % sh -c 'echo var/versions/object/% && ls -la var/versions/object/% | grep root'
ls -la var/versions/object/g530000 | grep root | awk '{print $NF}' | xargs -I % chown -R www-data:www-data var/versions/object/g530000/%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment