nextcloud-gmbh / mtime_fixer_tool_kit

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

Instructions for usage within Alpine Linux #18

Open drfuzzyness opened 2 years ago

drfuzzyness commented 2 years ago

For future readers who encounter errors like: find: unrecognized: -newermt or environment: line 37: psql: command not found when running the solvable_files.sh script, Alpine Linux (common Docker container distro) is missing two packages you'll need to run this script.

apk update
apk add findutils bash postgresql-client sudo

EDIT: If you're using MySQL as your database instead of Postgres, you'll need:

apk update
apk add findutils bash mysql-client sudo 

_Thanks bavarialogy!_

Hopefully this helps someone looking at this in the future!

artonge commented 2 years ago

Hey @drfuzzyness, could you make a PR adding this to the readme?

MaxiMii05 commented 2 years ago

Thank you very much! This is what I needed for the linuxserver.io docker container. Note that you have to install mysql-client instead of postrgresql-client if you use MySQL or mariadb.

godfuture commented 2 years ago

Same issue here.

Running the script in Nextcloud official docker container (apache:stable) I get: environment: line 34: mysql: command not found

bavarialogy commented 2 years ago

I'm running tag 23-fpm-alpine and I had to (temporarily) add the following packages:

apk update
apk add findutils bash mysql-client sudo 

I added bash as a precaution, not sure if it is really mandatory. Once I entered the container I ran bash and then the script.

jonknud commented 2 years ago

For nextcloud:23-fpm you can use

apt update
apt install mariadb-client