Skip to content

Commit

Permalink
Deb: use deb-sys-maint user credentials to configure MariaDB plugins
Browse files Browse the repository at this point in the history
On systems with unix socket authentication root could run these
without any special maintenance accounts.
  • Loading branch information
ottok committed Oct 29, 2016
1 parent 02a6f61 commit 7316b14
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion debian/mariadb-plugin-mroonga.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
# Install Mroonga
# No user or password parameter is required with new MariaDB that
# has unix socket authentication support by default.
mysql < /usr/share/mysql/mroonga/install.sql || true
mysql --defaults-file=/etc/mysql/debian.cnf < /usr/share/mysql/mroonga/install.sql || true
# Always exit with success instead of leaving dpkg in a broken state


Expand Down
2 changes: 1 addition & 1 deletion debian/mariadb-plugin-mroonga.prerm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
# Install Mroonga
# No user or password parameter is required with new MariaDB that
# has unix socket authentication support by default.
mysql < /usr/share/mysql/mroonga/uninstall.sql || true
mysql --defaults-file=/etc/mysql/debian.cnf < /usr/share/mysql/mroonga/uninstall.sql || true
# Always exit with success instead of leaving dpkg in a broken state


Expand Down
2 changes: 1 addition & 1 deletion debian/mariadb-plugin-spider.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
# Install Spider
# No user or password parameter is required with new MariaDB that
# has unix socket authentication support by default.
mysql < /usr/share/mysql/install_spider.sql || true
mysql --defaults-file=/etc/mysql/debian.cnf < /usr/share/mysql/install_spider.sql || true
# Always exit with success instead of leaving dpkg in a broken state


Expand Down

0 comments on commit 7316b14

Please sign in to comment.