Closed camilasan closed 2 years ago
No reason beside not adding yet another arg.
Keeping two scripts will lead to discrepancies. I can accept a change guessing the username with something like:
sudo -u "$(stat -c '%U' ./occ)" php ./occ files:scan --quiet --path="$relative_filepath"
Keeping two scripts will lead to discrepancies. I can accept a change guessing the username with something like:
I have changed it, please check.
I am adding this script because we bumped into a customer that uses 'apache' and not 'www-data'. I already sent this version to the customer via support.
Was there a reason to not pick up the user via script parameter @artonge?
Maybe we can just keep this extra script.