fix: permissions on volumes

This commit is contained in:
mcolonna 2025-06-26 10:58:07 +02:00
parent 59e9c06425
commit 46457d8113
3 changed files with 4 additions and 1 deletions

View file

@ -13,7 +13,6 @@ COPY healthcheck.sh /healthcheck.sh
RUN addgroup -S db && adduser -S db db RUN addgroup -S db && adduser -S db db
RUN mkdir /db RUN mkdir /db
RUN chmod -R 666 /db
EXPOSE 3306 EXPOSE 3306

View file

@ -1,6 +1,8 @@
#!/bin/sh #!/bin/sh
set -e set -e
chmod -R +rwX /db
sql_quote() sql_quote()
{ {
echo "SELECT QUOTE(FROM_BASE64('$( echo -n "$1" | base64 )'));" | mariadb -u root -N echo "SELECT QUOTE(FROM_BASE64('$( echo -n "$1" | base64 )'));" | mariadb -u root -N

View file

@ -8,6 +8,8 @@ dirisempty()
[ -z "$( ls -A "$1" )" ] [ -z "$( ls -A "$1" )" ]
} }
chmod -R +rwX /www
if ! [ -f /www/.installed ] if ! [ -f /www/.installed ]
then then
echo "clean..." echo "clean..."