Skip to content

Commit

Permalink
Use sudo to copy mysql config files, fixes #1541 (#1563)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed May 2, 2019
1 parent 41e9954 commit 980cb5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions containers/ddev-dbserver/10.1/files/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ sudo chown -R "$UID:$(id -g)" /var/lib/mysql

# If we have extra mariadb cnf files,, copy them to where they go.
if [ -d /mnt/ddev_config/mysql -a "$(echo /mnt/ddev_config/mysql/*.cnf)" != "/mnt/ddev_config/mysql/*.cnf" ] ; then
cp /mnt/ddev_config/mysql/*.cnf /etc/mysql/conf.d
chmod ugo-w /etc/mysql/conf.d/*
sudo cp /mnt/ddev_config/mysql/*.cnf /etc/mysql/conf.d
sudo chmod -R ugo-w /etc/mysql/conf.d
fi

# If mariadb has not been initialized, copy in the base image from either the default starter image (/var/tmp/mysqlbase)
Expand Down
4 changes: 2 additions & 2 deletions containers/ddev-dbserver/10.2/files/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ sudo chown -R "$UID:$(id -g)" /var/lib/mysql

# If we have extra mariadb cnf files,, copy them to where they go.
if [ -d /mnt/ddev_config/mysql -a "$(echo /mnt/ddev_config/mysql/*.cnf)" != "/mnt/ddev_config/mysql/*.cnf" ] ; then
cp /mnt/ddev_config/mysql/*.cnf /etc/mysql/conf.d
chmod ugo-w /etc/mysql/conf.d/*
sudo cp /mnt/ddev_config/mysql/*.cnf /etc/mysql/conf.d
sudo chmod -R ugo-w /etc/mysql/conf.d
fi

# If mariadb has not been initialized, copy in the base image from either the default starter image (/var/tmp/mysqlbase)
Expand Down
2 changes: 1 addition & 1 deletion pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ var WebTag = "20190420_fix_apache_cgi" // Note that this can be overridden by ma
var DBImg = "drud/ddev-dbserver"

// BaseDBTag is the main tag, DBTag is constructed from it
var BaseDBTag = "20190329_maria_logs_config"
var BaseDBTag = "20190501_fix_mariadb_override_restart_problem"

// DBAImg defines the default phpmyadmin image tag used for applications.
var DBAImg = "drud/phpmyadmin"
Expand Down

0 comments on commit 980cb5c

Please sign in to comment.