Open drfuzzyness opened 2 years ago
Hey @drfuzzyness, could you make a PR adding this to the readme?
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.
Same issue here.
Running the script in Nextcloud official docker container (apache:stable) I get:
environment: line 34: mysql: command not found
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.
For nextcloud:23-fpm
you can use
apt update
apt install mariadb-client
For future readers who encounter errors like:
find: unrecognized: -newermt
orenvironment: line 37: psql: command not found
when running thesolvable_files.sh
script, Alpine Linux (common Docker container distro) is missing two packages you'll need to run this script.EDIT: If you're using MySQL as your database instead of Postgres, you'll need:
_Thanks bavarialogy!_
Hopefully this helps someone looking at this in the future!