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 mkdir /db
RUN chmod -R 666 /db
EXPOSE 3306

View file

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

View file

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