fix: permissions on volumes
This commit is contained in:
parent
59e9c06425
commit
46457d8113
3 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -8,6 +8,8 @@ dirisempty()
|
|||
[ -z "$( ls -A "$1" )" ]
|
||||
}
|
||||
|
||||
chmod -R +rwX /www
|
||||
|
||||
if ! [ -f /www/.installed ]
|
||||
then
|
||||
echo "clean..."
|
||||
|
|
Loading…
Add table
Reference in a new issue