fix sudoers
This commit is contained in:
parent
fb3f4fcd56
commit
c3f9447a70
@ -1,10 +1,12 @@
|
|||||||
FROM mariadb:10
|
FROM mariadb:10
|
||||||
|
|
||||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -q -y cron automysqlbackup
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -q -y cron sudo automysqlbackup
|
||||||
RUN touch /etc/mysql/mariadb.conf.d/settings.cnf && chown mysql /etc/mysql/mariadb.conf.d/settings.cnf
|
RUN touch /etc/mysql/mariadb.conf.d/settings.cnf && chown mysql /etc/mysql/mariadb.conf.d/settings.cnf
|
||||||
|
|
||||||
COPY docker-entrypoint.sh /usr/local/bin/
|
COPY docker-entrypoint.sh /usr/local/bin/
|
||||||
COPY automysqlbackup /etc/default
|
COPY automysqlbackup /etc/default
|
||||||
|
COPY sudoers /etc/sudoers.d/mysudoers
|
||||||
|
|
||||||
|
|
||||||
#HEALTHCHECK
|
#HEALTHCHECK
|
||||||
|
|
||||||
|
@ -341,6 +341,6 @@ EOF
|
|||||||
if [ "$READONLY" = "1" ] ; then
|
if [ "$READONLY" = "1" ] ; then
|
||||||
echo "read-only" >> /etc/mysql/mariadb.conf.d/settings.cnf
|
echo "read-only" >> /etc/mysql/mariadb.conf.d/settings.cnf
|
||||||
fi
|
fi
|
||||||
service cron start
|
sudo service cron start
|
||||||
_main "$@"
|
_main "$@"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user