nextcloud-gmbh / mtime_fixer_tool_kit

Tool kit to fix the mtime issue on the server state
15 stars 7 forks source link

For the use case of the user being 'apache' not 'www-data'. #24

Closed camilasan closed 2 years ago

camilasan commented 2 years ago

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.

artonge commented 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"
camilasan commented 2 years ago

Keeping two scripts will lead to discrepancies. I can accept a change guessing the username with something like:

I have changed it, please check.